JBoss Remoting 3.1.0.Beta1

org.jboss.remoting3
Interface ClientConnector<I,O>


public interface ClientConnector<I,O>

A client connector. Such a connector can usually be sent across a link to a specific peer. Attempting to access the client from the wrong peer, or attempting to send the connector to a peer for whom it is not intended, will result in an exception.


Method Summary
 ClientContext getClientContext()
          Get the client context associated with this connector.
 org.jboss.xnio.IoFuture<? extends Client<I,O>> getFutureClient()
          Get the future client associated with this connector.
 

Method Detail

getFutureClient

org.jboss.xnio.IoFuture<? extends Client<I,O>> getFutureClient()
                                                               throws SecurityException
Get the future client associated with this connector. This method may only be called after this connector has passed over its associated connection.

Returns:
the future client
Throws:
SecurityException - if this client is being accessed from the wrong peer

getClientContext

ClientContext getClientContext()
                               throws SecurityException
Get the client context associated with this connector. This method may only be called from the originating side of the connection.

Returns:
the client context
Throws:
SecurityException - if the client context is accessed on the remote side of the connection

JBoss Remoting 3.1.0.Beta1

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