JBoss Remoting 3.1.0.Beta2

org.jboss.remoting3.spi
Interface LocalRequestHandler

All Superinterfaces:
Closeable, HandleableCloseable<LocalRequestHandler>

public interface LocalRequestHandler
extends HandleableCloseable<LocalRequestHandler>

A request handler which is local to the machine.

This is an internal Remoting interface, intended to be implemented only by Remoting internals and protocol implementations. It should not be used or implemented by end-users. Members may be added without notice. Applications should instead use the Client and RequestListener interfaces.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.remoting3.HandleableCloseable
HandleableCloseable.Key
 
Method Summary
 ClassLoader getClassLoader()
          Get the class loader to use to unmarshall inbound requests for this handler.
 org.jboss.xnio.Cancellable receiveRequest(Object request, RemoteReplyHandler replyHandler)
          Receive a request bound to this system.
 
Methods inherited from interface org.jboss.remoting3.HandleableCloseable
addCloseHandler, awaitClosed, awaitClosedUninterruptibly, close
 

Method Detail

receiveRequest

org.jboss.xnio.Cancellable receiveRequest(Object request,
                                          RemoteReplyHandler replyHandler)
Receive a request bound to this system. This method is intended to be called by protocol handlers. If the request cannot be accepted for some reason, the RemoteReplyHandler.handleException(java.io.IOException) method is called immediately.

Parameters:
request - the request
replyHandler - a handler for the reply
Returns:
a reference which may be used to cancel the request

getClassLoader

ClassLoader getClassLoader()
Get the class loader to use to unmarshall inbound requests for this handler.

Returns:
the class loader

JBoss Remoting 3.1.0.Beta2

Copyright © 2010 JBoss, a division of Red Hat, Inc.