public class EchoServerHandler extends AbstractStreamHandler
| Modifier and Type | Method and Description |
|---|---|
void |
exception(Throwable e)
Called to notify about an exception caught during processing of I/O or
protocol related operations.
|
ISessionConfig |
getConfig()
Returns the configuration object that will be used to configure the
behavior of the associated session.
|
ISessionStructureFactory |
getFactory()
Returns the factory object that will be used to configure the internal
structure of the associated session.
|
boolean |
incident(SessionIncident incident,
Throwable t)
Called to notify about an incident that occurred during processing of I/O
or protocol related operations.
|
void |
read(Object msg)
Called when a new message was read and decoded from the input buffer.
|
available, available, getSession, setSessionevent, event, getName, read, read, timer, timerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevent, event, getName, 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 exception(Throwable e)
IHandlerexception in interface IHandlerexception in class AbstractHandlere - the exception caughtpublic boolean incident(SessionIncident incident, Throwable t)
IHandlerincident in interface IHandlerincident in class AbstractHandlerincident - an incident that occurredt - an exception that is related with the incident or
nulltrue to indicate that the incident was handled and
the default action should not be executed by the SNF4J framework
underneath.public ISessionConfig getConfig()
IHandlergetConfig in interface IHandlergetConfig in class AbstractHandlerISessionConfigpublic ISessionStructureFactory getFactory()
IHandlergetFactory in interface IHandlergetFactory in class AbstractHandlerISessionStructureFactoryCopyright © 2017–2022 SNF4J.ORG. All rights reserved.