rabbit.io
Class BoundBinder
java.lang.Object
rabbit.io.BoundBinder
- All Implemented Interfaces:
- SocketBinder
public class BoundBinder
- extends Object
- implements SocketBinder
A binder that will bind to a specific InetAddress
- Author:
- Robert Olofsson
Method Summary |
InetAddress |
getInetAddress()
Get the inet address to bind to, return null to get the wildcard. |
int |
getPort()
Get the port number to bind to, use 0 to let the system pick a port. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BoundBinder
public BoundBinder(InetAddress ia)
getPort
public int getPort()
- Description copied from interface:
SocketBinder
- Get the port number to bind to, use 0 to let the system pick a port.
- Specified by:
getPort
in interface SocketBinder
getInetAddress
public InetAddress getInetAddress()
- Description copied from interface:
SocketBinder
- Get the inet address to bind to, return null to get the wildcard.
- Specified by:
getInetAddress
in interface SocketBinder