JBoss Remoting 3.1.0.Beta2

org.jboss.remoting3.spi
Interface ConnectionHandlerContext


public interface ConnectionHandlerContext

The context for connection handlers. Used to inform the endpoint of incoming events on an established connection.

This interface is part of the Remoting 3 public API. While instances of this type may be used publicly, users are not encouraged to implement or extend this type as members may be added without notice.


Method Summary
 ConnectionProviderContext getConnectionProviderContext()
          Get the connection provider context associated with this connection handler context.
 LocalRequestHandler openService(String serviceType, String groupName, org.jboss.xnio.OptionMap optionMap)
          Open a service.
 void remoteClosed()
          Indicate that the remote side has terminated the connection, so the local side should be closed as well.
 

Method Detail

getConnectionProviderContext

ConnectionProviderContext getConnectionProviderContext()
Get the connection provider context associated with this connection handler context.

Returns:
the connection provider context

openService

LocalRequestHandler openService(String serviceType,
                                String groupName,
                                org.jboss.xnio.OptionMap optionMap)
Open a service. This method should return immediately.

Parameters:
serviceType - the service type string
groupName - the group name, or null for any group name
optionMap - the options to pass to the service
Returns:
the new request handler
Throws:
IOException - if an error occurs

remoteClosed

void remoteClosed()
Indicate that the remote side has terminated the connection, so the local side should be closed as well.


JBoss Remoting 3.1.0.Beta2

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