Class RecoveredTransactionReplayer
java.lang.Object
java.lang.Thread
com.arjuna.ats.internal.jts.recovery.transactions.RecoveredTransactionReplayer
- All Implemented Interfaces:
Runnable
Threaded object used to replay phase 2 of the commit protocol in a
background thread.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the recovery status of the transactionfinal Status
Get the status of the recovered transactionstatic Object
final void
Starts the thread to replay phase 2 of the transaction in the background.final void
run()
final void
swapResource
(Uid rcUid, Resource r) Swap an old Resource that was registered with the transaction for a new one.final void
tidyup()
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Constructor Details
-
RecoveredTransactionReplayer
-
-
Method Details
-
tidyup
public final void tidyup()- Since:
- JTS 2.1.1.
-
getStatus
Get the status of the recovered transaction -
getRecoveryStatus
public int getRecoveryStatus()Get the recovery status of the transaction -
swapResource
Swap an old Resource that was registered with the transaction for a new one. The old one is identified by its RecoveryCoordinator that was returned when the Resource was registered. The second parameter is the new Resouce. -
replayPhase2
public final void replayPhase2()Starts the thread to replay phase 2 of the transaction in the background. -
run
public final void run() -
isPresent
- Since:
- JTS 2.1.1.
-