JBoss Remoting 3.1.0.Beta2

org.jboss.remoting3.spi
Interface ConnectionHandler

All Superinterfaces:
Closeable

public interface ConnectionHandler
extends Closeable

A connection to a foreign endpoint. This interface is implemented by the protocol implementation.


Method Summary
 RequestHandlerConnector createConnector(LocalRequestHandler localHandler)
          Create a connector which may be used to communicate with the given local RequestHandler.
 org.jboss.xnio.Cancellable open(String serviceType, String groupName, org.jboss.xnio.Result<RemoteRequestHandler> result, ClassLoader classLoader, org.jboss.xnio.OptionMap optionMap)
          Open a request handler.
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

open

org.jboss.xnio.Cancellable open(String serviceType,
                                String groupName,
                                org.jboss.xnio.Result<RemoteRequestHandler> result,
                                ClassLoader classLoader,
                                org.jboss.xnio.OptionMap optionMap)
Open a request handler.

Parameters:
serviceType - the service type string
groupName - the group name string
result - the result for the connected request handler
classLoader - the class loader to use for replies
optionMap - the options for this service
Returns:
a handle which may be used to cancel the pending operation

createConnector

RequestHandlerConnector createConnector(LocalRequestHandler localHandler)
Create a connector which may be used to communicate with the given local RequestHandler. The connector should only produce a result once it has passed to the remote side of this connection.

Parameters:
localHandler - the local handler
Returns:
the connector

JBoss Remoting 3.1.0.Beta2

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