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, setSession
event, exception, getName, incident, read, read, timer, timer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
event, exception, getName, incident, read, read, read, timer, timer
read, read
protected 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)
IHandler
event
in interface IHandler
event
in class AbstractHandler
event
- an event related with the change of the session stateSessionEvent
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.