H
- the parameterization lower bounded by FilteredHandler
itself.C
- the Connection
type.T
- the Filter
inbound type.public interface FilteredHandler<H extends FilteredHandler<H,C,T>,C extends Connection,T> extends ConnectionHandler<C>
ConnectionHandler
that uses Filter
s to process inbound and outbound data.ConnectionHandler.ClosingType
Modifier and Type | Method and Description |
---|---|
void |
onBind(Queue<T> inputs)
On binding.
|
void |
onClosing(ConnectionHandler.ClosingType type,
Queue<T> inputs)
On closure.
|
void |
onReceive(Queue<T> inputs)
On receipt of data.
|
int |
send(T output)
Sends the given output value to the remote host.
|
H |
setFilterFactory(FilterFactory<? extends Filter<T,ByteBuffer>,T,ByteBuffer,? super H> filterFactory)
Sets the
FilterFactory from which appropriate Filter s will be derived. |
getConnection, onBind, onClose, onClosing, onReceive, setConnection, toString
H setFilterFactory(FilterFactory<? extends Filter<T,ByteBuffer>,T,ByteBuffer,? super H> filterFactory)
FilterFactory
from which appropriate Filter
s will be derived.filterFactory
- the FilterFactory
.int send(T output)
output
- the output value.void onClosing(ConnectionHandler.ClosingType type, Queue<T> inputs)
type
- the ConnectionHandler.ClosingType
.inputs
- the input Queue
.ConnectionHandler.ClosingType