public class NIOTCPDeadConnection
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Field and Description |
|---|---|
protected SelectorThread.Cleaner |
cleaner
The cleaner.
|
protected long |
deadtime
The dead connection start time.
|
| Constructor and Description |
|---|
NIOTCPDeadConnection(SelectorThread.Cleaner cleaner)
Create a new dead connection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the connection.
|
boolean |
shouldRetry()
Test if it should be retried to reestablish the connection.
|
protected long deadtime
protected SelectorThread.Cleaner cleaner
public NIOTCPDeadConnection(SelectorThread.Cleaner cleaner)
public boolean shouldRetry()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException