XNIO version 1.0.0.GA

org.jboss.xnio
Class ConnectionAddress<A>

java.lang.Object
  extended by org.jboss.xnio.ConnectionAddress<A>
Type Parameters:
A - the address type

public final class ConnectionAddress<A>
extends Object

An immutable pair of addresses that define the two endpoints of a connection.


Constructor Summary
ConnectionAddress(A localAddress, A remoteAddress)
          Construct a new instance.
 
Method Summary
 A getLocalAddress()
          Get the local address.
 A getRemoteAddress()
          Get the remote address.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionAddress

public ConnectionAddress(A localAddress,
                         A remoteAddress)
Construct a new instance.

Parameters:
localAddress - the local address
remoteAddress - the remote address
Method Detail

getLocalAddress

public final A getLocalAddress()
Get the local address.

Returns:
the local address

getRemoteAddress

public final A getRemoteAddress()
Get the remote address.

Returns:
the remote address

XNIO version 1.0.0.GA

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