org.jboss.remoting.transporter
Class TransporterRequestListener<T>
java.lang.Object
org.jboss.remoting.AbstractRequestListener<TransporterInvocation,Object>
org.jboss.remoting.transporter.TransporterRequestListener<T>
- All Implemented Interfaces:
- RequestListener<TransporterInvocation,Object>
public final class TransporterRequestListener<T>
- extends AbstractRequestListener<TransporterInvocation,Object>
Transporter request listener. Used to implement the receiving end of a transporter invocation.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransporterRequestListener
public TransporterRequestListener(T target)
handleRequest
public void handleRequest(RequestContext<Object> context,
TransporterInvocation request)
throws RemoteExecutionException
- Description copied from interface:
RequestListener
- Handle a request. If this method throws
RemoteExecutionException, then that exception is passed
back to the caller and the request is marked as complete. Otherwise, the request
listener must send back either a reply (using the sendReply() method on the RequestContext) or
an exception (using the sendException() method on the RequestContext). Failure to do so may
cause the client to hang indefinitely.
- Parameters:
context - the context on which a reply may be sentrequest - the received request
- Throws:
RemoteExecutionException - if the execution failed in some way
Copyright © 2008 JBoss, a division of Red Hat, Inc.