public abstract class AbstractFileHandler extends AbstractStreamHandler
| Modifier and Type | Field and Description |
|---|---|
protected static int |
BUFFER_SIZE |
protected DefaultSessionConfig |
config |
protected RandomAccessFile |
file |
protected FileChannel |
fileChannel |
protected long |
fileLength |
protected static AllocatorMetric |
METRIC |
protected SocketAddress |
remoteAddress |
protected long |
startTime |
| Modifier and Type | Method and Description |
|---|---|
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.
|
ISessionStructureFactory |
getFactory()
Returns the factory object that will be used to configure the internal
structure of the associated session.
|
available, available, getSession, setSessionevent, exception, getName, incident, read, read, timer, timerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevent, exception, getName, incident, read, read, read, timer, timerread, readprotected static final int BUFFER_SIZE
protected static final AllocatorMetric METRIC
protected final DefaultSessionConfig config
protected RandomAccessFile file
protected FileChannel fileChannel
protected long fileLength
protected SocketAddress remoteAddress
protected long startTime
public void event(SessionEvent event)
IHandlerevent in interface IHandlerevent in class AbstractHandlerevent - an event related with the change of the session stateSessionEventpublic 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.