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, getFactoryavailable, available, getSession, setSessionevent, getName, incident, read, read, timerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevent, getName, incident, read, read, timerread, readpublic void read(Object msg)
IHandlerbyte[] and ByteBuffer.msg - the message that was read and decoded from the input buffer.public void timer(Object event)
IHandlertimer in interface IHandlertimer in class AbstractHandlerevent - the event object that identifies the timerpublic void event(SessionEvent event)
IHandlerevent in interface IHandlerevent in class AbstractFileHandlerevent - an event related with the change of the session stateSessionEventpublic void exception(Throwable t)
IHandlerexception in interface IHandlerexception in class AbstractHandlert - the exception caughtCopyright © 2017–2022 SNF4J.ORG. All rights reserved.