public class DiscardingClientHandler extends AbstractStreamHandler
| Constructor and Description |
|---|
DiscardingClientHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
event(DataEvent event,
long size)
Called to notify about an I/O operation.
|
void |
event(SessionEvent event)
Called to notify about a change of the associated session state.
|
ISessionConfig |
getConfig()
Returns the configuration object that will be used to configure the
behavior of the associated session.
|
void |
read(Object msg)
Called when a new message was read and decoded from the input buffer.
|
available, available, getSession, setSessionexception, getFactory, getName, incident, read, read, timer, timerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexception, getFactory, getName, incident, read, read, timer, timerread, readpublic void read(Object msg)
IHandlerbyte[] and ByteBuffer.msg - the message that was read and decoded from the input buffer.public void event(SessionEvent event)
IHandlerevent in interface IHandlerevent in class AbstractHandlerevent - an event related with the change of the session stateSessionEventpublic void event(DataEvent event, long size)
IHandlerevent in interface IHandlerevent in class AbstractHandlerevent - an event related with the type of I/O operationsize - the number of bytes related with the I/O operationDataEventpublic ISessionConfig getConfig()
IHandlergetConfig in interface IHandlergetConfig in class AbstractHandlerISessionConfigCopyright © 2017–2022 SNF4J.ORG. All rights reserved.