org.avineas.io.tcp
public class SocketChannelProvider extends java.lang.Object
Constructor and Description |
---|
SocketChannelProvider(java.lang.String host,
int port) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Channel |
getChannel(long timeout)
Get a channel from this provider, waiting for some time if needed.
|
java.lang.String |
toString() |
public SocketChannelProvider(java.lang.String host, int port)
public java.lang.String toString()
toString
in class java.lang.Object
public void close()
public Channel getChannel(long timeout)
ChannelProvider
getChannel
in interface ChannelProvider
timeout
- The timeout in ms for the channel to become available