public final class SilentConnectionFilter extends BaseFilter
| Modifier and Type | Field and Description |
|---|---|
static long |
UNLIMITED_TIMEOUT |
static long |
UNSET_TIMEOUT |
| Constructor and Description |
|---|
SilentConnectionFilter(DelayedExecutor executor,
long timeout,
TimeUnit timeunit) |
| Modifier and Type | Method and Description |
|---|---|
long |
getTimeout(TimeUnit timeunit) |
NextAction |
handleAccept(FilterChainContext ctx)
Execute a unit of processing work to be performed, when server channel
has accepted the client connection.
|
NextAction |
handleClose(FilterChainContext ctx)
Execute a unit of processing work to be performed, when connection
has been closed.
|
NextAction |
handleRead(FilterChainContext ctx)
Execute a unit of processing work to be performed, when channel will
become available for reading.
|
NextAction |
handleWrite(FilterChainContext ctx)
Execute a unit of processing work to be performed, when some data should
be written on channel.
|
createContext, exceptionOccurred, handleConnect, handleEvent, onAdded, onFilterChainChanged, onRemovedpublic static final long UNLIMITED_TIMEOUT
public static final long UNSET_TIMEOUT
public SilentConnectionFilter(DelayedExecutor executor, long timeout, TimeUnit timeunit)
public long getTimeout(TimeUnit timeunit)
public NextAction handleAccept(FilterChainContext ctx) throws IOException
BaseFilterFilter may either complete the required processing and
return false, or delegate remaining processing to the next
Filter in a FilterChain containing this Filter
by returning true.handleAccept in interface FilterhandleAccept in class BaseFilterctx - FilterChainContextNextAction instruction for FilterChain, how it
should continue the executionIOExceptionpublic NextAction handleRead(FilterChainContext ctx) throws IOException
BaseFilterFilter may either complete the required processing and
return false, or delegate remaining processing to the next
Filter in a FilterChain containing this Filter
by returning true.handleRead in interface FilterhandleRead in class BaseFilterctx - FilterChainContextNextAction instruction for FilterChain, how it
should continue the executionIOExceptionpublic NextAction handleWrite(FilterChainContext ctx) throws IOException
BaseFilterFilter may either complete the required processing and
return false, or delegate remaining processing to the next
Filter in a FilterChain containing this Filter
by returning true.handleWrite in interface FilterhandleWrite in class BaseFilterctx - FilterChainContextNextAction instruction for FilterChain, how it
should continue the executionIOExceptionpublic NextAction handleClose(FilterChainContext ctx) throws IOException
BaseFilterFilter may either complete the required processing and
return false, or delegate remaining processing to the next
Filter in a FilterChain containing this Filter
by returning true.handleClose in interface FilterhandleClose in class BaseFilterctx - FilterChainContextNextAction instruction for FilterChain, how it
should continue the executionIOExceptionCopyright © 2014 Oracle Corporation. All Rights Reserved.