JBoss Remoting 3.1.0.Beta1

org.jboss.remoting3
Interface ClientContext

All Superinterfaces:
Attachable, Closeable, HandleableCloseable<ClientContext>

public interface ClientContext
extends HandleableCloseable<ClientContext>, Attachable

The server context for a single remote client instance.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.remoting3.HandleableCloseable
HandleableCloseable.Key
 
Method Summary
 void close()
          Close the client from the server side.
 Connection getConnection()
          Get the connection associated with this client context.
 
Methods inherited from interface org.jboss.remoting3.HandleableCloseable
addCloseHandler, awaitClosed, awaitClosedUninterruptibly
 
Methods inherited from interface org.jboss.remoting3.Attachable
getAttachments
 

Method Detail

getConnection

Connection getConnection()
Get the connection associated with this client context. If the client is local, null is returned.

Returns:
the connection, or null if there is none

close

void close()
           throws IOException
Close the client from the server side.

Specified by:
close in interface Closeable
Specified by:
close in interface HandleableCloseable<ClientContext>
Throws:
IOException - if an I/O error occurs

JBoss Remoting 3.1.0.Beta1

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