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, setSession
exception, getFactory, getName, incident, read, read, timer, timer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exception, getFactory, getName, incident, read, read, timer, timer
read, read
public void read(Object msg)
IHandler
byte[]
and ByteBuffer
.msg
- the message that was read and decoded from the input buffer.public void event(SessionEvent event)
IHandler
event
in interface IHandler
event
in class AbstractHandler
event
- an event related with the change of the session stateSessionEvent
public void event(DataEvent event, long size)
IHandler
event
in interface IHandler
event
in class AbstractHandler
event
- an event related with the type of I/O operationsize
- the number of bytes related with the I/O operationDataEvent
public ISessionConfig getConfig()
IHandler
getConfig
in interface IHandler
getConfig
in class AbstractHandler
ISessionConfig
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.