org.jboss.remoting3
Interface Connection
- All Superinterfaces:
- Attachable, Closeable, HandleableCloseable<Connection>
public interface Connection
- extends HandleableCloseable<Connection>, Attachable
A connection to a remote peer.
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 typeoptionMap
- 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
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.