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, setSession
event, event, getName, read, read, timer, timer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
event, event, getName, 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 exception(Throwable e)
IHandler
exception
in interface IHandler
exception
in class AbstractHandler
e
- the exception caughtpublic boolean incident(SessionIncident incident, Throwable t)
IHandler
incident
in interface IHandler
incident
in class AbstractHandler
incident
- an incident that occurredt
- an exception that is related with the incident or
null
true
to indicate that the incident was handled and
the default action should not be executed by the SNF4J framework
underneath.public ISessionConfig getConfig()
IHandler
getConfig
in interface IHandler
getConfig
in class AbstractHandler
ISessionConfig
public ISessionStructureFactory getFactory()
IHandler
getFactory
in interface IHandler
getFactory
in class AbstractHandler
ISessionStructureFactory
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.