Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected AtomicBoolean |
running |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier | Constructor and Description |
---|---|
protected |
RetrieveRunner() |
|
RetrieveRunner(R66Session session) |
Modifier and Type | Method and Description |
---|---|
int |
getLocalId() |
void |
notStartRunner()
When submit RetrieveRunner cannot be done since Executor is already stopped
|
void |
run() |
void |
stopRunner()
Try to stop the runner
|
static DataBlock |
transformToDataBlock(byte[] data)
Utility method for send through mode
|
static io.netty.channel.ChannelFuture |
writeWhenPossible(DataBlock block,
LocalChannelReference localChannelReference)
Write the next block when the channel is ready to prevent OOM
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
protected final AtomicBoolean running
protected RetrieveRunner()
public RetrieveRunner(R66Session session)
session
- public void stopRunner()
public static io.netty.channel.ChannelFuture writeWhenPossible(DataBlock block, LocalChannelReference localChannelReference) throws OpenR66ProtocolPacketException, OpenR66RunnerErrorException, OpenR66ProtocolSystemException
block
- localChannelReference
- OpenR66ProtocolPacketException
OpenR66RunnerErrorException
OpenR66ProtocolSystemException
public static DataBlock transformToDataBlock(byte[] data)
data
- the data byte, if null it is the last blockpublic int getLocalId()
public void notStartRunner()
Copyright © 2009–2020 Waarp. All rights reserved.