JBoss Remoting 3 3.2.0.CR6

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.


Method Summary
 Connection getConnection()
          Get the connection corresponding to this connection handler context.
 ConnectionProviderContext getConnectionProviderContext()
          Get the connection provider context associated with this connection handler context.
 OpenListener getServiceOpenListener(String serviceType)
          Get the open listener for 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

getServiceOpenListener

OpenListener getServiceOpenListener(String serviceType)
Get the open listener for a service. This method should return immediately.

Parameters:
serviceType - the service type string
Returns:
the open listener

remoteClosed

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


getConnection

Connection getConnection()
Get the connection corresponding to this connection handler context.

Returns:
the connection

JBoss Remoting 3 3.2.0.CR6

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.