JBoss Remoting 3.1.0.Beta1

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(RequestHandler 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<RequestHandler> result)
          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<RequestHandler> result)
Open a request handler.

Parameters:
serviceType - the service type string
groupName - the group name string
result - the result for the connected request handler @return a handle which may be used to cancel the pending operation

createConnector

RequestHandlerConnector createConnector(RequestHandler 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.Beta1

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