public class CometFilter extends BaseFilter
Constructor and Description |
---|
CometFilter() |
Modifier and Type | Method and Description |
---|---|
NextAction |
handleRead(FilterChainContext ctx)
Execute a unit of processing work to be performed, when channel will
become available for reading.
|
void |
onAdded(FilterChain filterChain)
Method is called, when the Filter has been added to the
passed
FilterChain . |
createContext, exceptionOccurred, getFilterChain, getIndex, handleAccept, handleClose, handleConnect, handleEvent, handleWrite, onFilterChainChanged, onRemoved
public void onAdded(FilterChain filterChain)
Filter
FilterChain
.onAdded
in interface Filter
onAdded
in class BaseFilter
filterChain
- the FilterChain
this Filter was added to.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
Copyright © 2013 Oracle Corporation. All Rights Reserved.