JBoss Remoting 3 3.2.0.CR6

org.jboss.remoting3
Interface Connection

All Superinterfaces:
Attachable, Closeable, HandleableCloseable<Connection>

public interface Connection
extends HandleableCloseable<Connection>, Attachable

A connection to a remote peer.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.remoting3.HandleableCloseable
HandleableCloseable.Key
 
Method Summary
 Collection<Principal> getPrincipals()
          Get the authenticated principals for this connection.
 String getRemoteEndpointName()
          Get the name of the remote endpoint, if it has one.
 org.xnio.IoFuture<Channel> openChannel(String serviceType, org.xnio.OptionMap optionMap)
          Open a channel to a remote service on this connection.
 
Methods inherited from interface org.jboss.remoting3.HandleableCloseable
addCloseHandler, awaitClosed, awaitClosedUninterruptibly, close, closeAsync
 
Methods inherited from interface org.jboss.remoting3.Attachable
getAttachments
 

Method Detail

getPrincipals

Collection<Principal> getPrincipals()
Get the authenticated principals for this connection.

Returns:
the authenticated principals

openChannel

org.xnio.IoFuture<Channel> openChannel(String serviceType,
                                       org.xnio.OptionMap optionMap)
Open a channel to a remote service on this connection.

Parameters:
serviceType - the service type
optionMap - the option map
Returns:
the future channel

getRemoteEndpointName

String getRemoteEndpointName()
Get the name of the remote endpoint, if it has one.

Returns:
the remote endpoint name or null if it is anonymous

JBoss Remoting 3 3.2.0.CR6

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