public class FileClientHandler extends AbstractFileHandler
BUFFER_SIZE, config, file, fileChannel, fileLength, METRIC, remoteAddress, startTime
Modifier and Type | Method and Description |
---|---|
void |
event(SessionEvent event)
Called to notify about a change of the associated session state.
|
void |
exception(Throwable t)
Called to notify about an exception caught 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.
|
void |
timer(Object event)
Called to notify about an expiration of the timer identified by the
specified event object.
|
getConfig, getFactory
available, available, getSession, setSession
event, getName, incident, read, read, timer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
event, getName, incident, read, read, 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 timer(Object event)
IHandler
timer
in interface IHandler
timer
in class AbstractHandler
event
- the event object that identifies the timerpublic void event(SessionEvent event)
IHandler
event
in interface IHandler
event
in class AbstractFileHandler
event
- an event related with the change of the session stateSessionEvent
public void exception(Throwable t)
IHandler
exception
in interface IHandler
exception
in class AbstractHandler
t
- the exception caughtCopyright © 2017–2022 SNF4J.ORG. All rights reserved.