Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
static ConcurrentLinkedQueue<ClientRunner> |
activeRunners |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ClientRunner(NetworkTransaction networkTransaction,
DbTaskRunner taskRunner,
R66Future futureRequest) |
Modifier and Type | Method and Description |
---|---|
void |
changeUpdatedInfo(AbstractDbData.UpdatedInfo info,
ErrorCode code,
boolean force)
Change the UpdatedInfo of the current runner
|
R66Future |
finishTransfer(LocalChannelReference localChannelReference)
Finish the transfer (called at the end of runTransfer)
|
LocalChannelReference |
getLocalChannelReference() |
NetworkTransaction |
getNetworkTransaction() |
boolean |
getSendThroughMode() |
DbTaskRunner |
getTaskRunner() |
static String |
hashStatus() |
boolean |
incrementTaskRunnerTry(DbTaskRunner runner,
int limit) |
LocalChannelReference |
initRequest()
Initialize the request
|
boolean |
isLimitRetryConnection() |
void |
run() |
R66Future |
runTransfer()
True transfer run (can be called directly to enable exception outside any
executors)
|
void |
setLimitRetryConnection(boolean limitRetryConnection) |
void |
setRecvThroughHandler(RecvThroughHandler handler) |
void |
setSendThroughMode() |
R66Future |
tryAgainTransferOnOverloaded(boolean retry,
LocalChannelReference localChannelReference)
In case an overloaded signal is returned by the requested
|
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
public static ConcurrentLinkedQueue<ClientRunner> activeRunners
public ClientRunner(NetworkTransaction networkTransaction, DbTaskRunner taskRunner, R66Future futureRequest)
public static String hashStatus()
public NetworkTransaction getNetworkTransaction()
public DbTaskRunner getTaskRunner()
public LocalChannelReference getLocalChannelReference()
public boolean incrementTaskRunnerTry(DbTaskRunner runner, int limit)
runner
- limit
- public R66Future runTransfer() throws OpenR66RunnerErrorException, OpenR66ProtocolNoConnectionException, OpenR66ProtocolPacketException, OpenR66ProtocolNotYetConnectionException
OpenR66RunnerErrorException
OpenR66ProtocolNoConnectionException
OpenR66ProtocolPacketException
OpenR66ProtocolNotYetConnectionException
public R66Future tryAgainTransferOnOverloaded(boolean retry, LocalChannelReference localChannelReference) throws OpenR66RunnerErrorException, OpenR66ProtocolNoConnectionException, OpenR66ProtocolPacketException, OpenR66ProtocolNotYetConnectionException
retry
- if True, it will retry in case of overloaded remote
server, else it just stopslocalChannelReference
- OpenR66RunnerErrorException
OpenR66ProtocolNoConnectionException
OpenR66ProtocolPacketException
OpenR66ProtocolNotYetConnectionException
public R66Future finishTransfer(LocalChannelReference localChannelReference) throws OpenR66RunnerErrorException
localChannelReference
- OpenR66ProtocolNotYetConnectionException
OpenR66ProtocolPacketException
OpenR66ProtocolNoConnectionException
OpenR66RunnerErrorException
public LocalChannelReference initRequest() throws OpenR66ProtocolNoConnectionException, OpenR66RunnerErrorException, OpenR66ProtocolPacketException, OpenR66ProtocolNotYetConnectionException
OpenR66ProtocolNoConnectionException
OpenR66RunnerErrorException
OpenR66ProtocolPacketException
OpenR66ProtocolNotYetConnectionException
public void changeUpdatedInfo(AbstractDbData.UpdatedInfo info, ErrorCode code, boolean force)
info
- public void setRecvThroughHandler(RecvThroughHandler handler)
handler
- the handler to setpublic void setSendThroughMode()
public boolean getSendThroughMode()
public boolean isLimitRetryConnection()
public void setLimitRetryConnection(boolean limitRetryConnection)
Copyright © 2009–2020 Waarp. All rights reserved.