public class NIOTCPOutputConnection
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Field and Description |
|---|---|
protected java.net.InetSocketAddress |
address
The address.
|
protected SelectorThread.Cleaner |
cleaner
The cleaner.
|
protected java.nio.channels.SocketChannel |
sc
The socket channel.
|
| Constructor and Description |
|---|
NIOTCPOutputConnection(java.nio.channels.SocketChannel sc,
java.net.InetSocketAddress address,
SelectorThread.Cleaner cleaner)
Create a new output connection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the connection.
|
java.net.InetSocketAddress |
getAddress()
Get the address.
|
SelectorThread.Cleaner |
getCleaner()
Get the cleaner;
|
java.nio.channels.SocketChannel |
getSocketChannel()
Get the channel.
|
protected java.nio.channels.SocketChannel sc
protected java.net.InetSocketAddress address
protected SelectorThread.Cleaner cleaner
public NIOTCPOutputConnection(java.nio.channels.SocketChannel sc,
java.net.InetSocketAddress address,
SelectorThread.Cleaner cleaner)
public java.net.InetSocketAddress getAddress()
public java.nio.channels.SocketChannel getSocketChannel()
public SelectorThread.Cleaner getCleaner()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException