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, onRemoved
public 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
BaseFilter
Filter
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 Filter
handleAccept
in class BaseFilter
ctx
- FilterChainContext
NextAction
instruction for FilterChain
, how it
should continue the executionIOException
public NextAction handleRead(FilterChainContext ctx) throws IOException
BaseFilter
Filter
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 Filter
handleRead
in class BaseFilter
ctx
- FilterChainContext
NextAction
instruction for FilterChain
, how it
should continue the executionIOException
public NextAction handleWrite(FilterChainContext ctx) throws IOException
BaseFilter
Filter
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 Filter
handleWrite
in class BaseFilter
ctx
- FilterChainContext
NextAction
instruction for FilterChain
, how it
should continue the executionIOException
public NextAction handleClose(FilterChainContext ctx) throws IOException
BaseFilter
Filter
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 Filter
handleClose
in class BaseFilter
ctx
- FilterChainContext
NextAction
instruction for FilterChain
, how it
should continue the executionIOException
Copyright © 2014 Oracle Corporation. All rights reserved.