class SettlerTask extends RetryTask implements TransactionConstants
SettlerTask is scheduled task, which
causes an unsettled transaction to settle.| Modifier and Type | Field and Description |
|---|---|
private static Logger |
operationsLogger
Logger for operations related messages
|
private long |
tid |
private static Logger |
transactionsLogger
Logger for transactions related messages
|
private TransactionManager |
txnmgr |
ABORTED, ACTIVE, COMMITTED, NOTCHANGED, PREPARED, VOTINGDAYS, HOURS, MINUTES, SECONDS| Constructor and Description |
|---|
SettlerTask(java.util.concurrent.ExecutorService manager,
WakeupManager wm,
TransactionManager txnmgr,
long tid)
Constructs a
SettlerTask. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
tryOnce()
Make a single attempt.
|
private final long tid
private final TransactionManager txnmgr
private static final Logger operationsLogger
private static final Logger transactionsLogger
SettlerTask(java.util.concurrent.ExecutorService manager, WakeupManager wm, TransactionManager txnmgr, long tid)
SettlerTask.manager - TaskManager providing the threads
of execution.txnmgr - TransactionManager which owns the
the transaction.tid - transaction IDCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.