public interface TransactionService
| Modifier and Type | Method and Description |
|---|---|
void |
addTSListener(TransactionServicePlugin listener)
Adds a listener to the transaction service.
|
CompositeTransaction |
createCompositeTransaction(long timeout)
Starts a new transaction.
|
CompositeTransaction |
createSubTransaction(CompositeTransaction ct) |
CompositeCoordinator |
getCompositeCoordinator(String root)
Gets a composite coordinator for the given root.
|
CompositeTransaction |
getCompositeTransaction(String tid)
Gets the composite transaction with the given tid.
|
Participant |
getParticipant(String root)
Gets a participant handle for the given root.
|
CompositeTransaction |
recreateCompositeTransaction(Propagation context)
Recreates a composite transaction based on an imported context.
|
void |
removeTSListener(TransactionServicePlugin listener)
Removes a listener from the transaction service.
|
void |
shutdown(boolean force)
Shuts down the server in a clean way.
|
void addTSListener(TransactionServicePlugin listener)
listener - The listener.void removeTSListener(TransactionServicePlugin listener)
listener - The listener.CompositeTransaction getCompositeTransaction(String tid)
tid - The transaction identifier.CompositeTransaction createCompositeTransaction(long timeout) throws SysException
SysExceptionCompositeTransaction recreateCompositeTransaction(Propagation context) throws SysException
context - The propagation context. Any interposition
actions should already have taken place, so that the propagation
is ready to be used by the local transaction service.timeout - Time in millis after which heur_commit is applied.SysExceptionvoid shutdown(boolean force)
throws SysException
force - If true, shutdown will not wait
for possibly indoubt txs to finish.
This may increase the need for restart recovery.SysExceptionParticipant getParticipant(String root) throws SysException
root - The root identifier.SysException - On failure, or if the given root is not known.CompositeCoordinator getCompositeCoordinator(String root) throws SysException
root - The root in case.SysExceptionCompositeTransaction createSubTransaction(CompositeTransaction ct) throws SysException
SysExceptionCopyright © 2026. All rights reserved.