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.Objectpublic void close()
public Channel getChannel(long timeout)
ChannelProvidergetChannel in interface ChannelProvidertimeout - The timeout in ms for the channel to become available