public class TransactionConnectorCoordinator<T,R> extends Object implements AutoCloseable
Modifier and Type | Field and Description |
---|---|
protected static org.apache.logging.log4j.Logger |
log |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static <T,R,E extends Exception> |
doInUnsuspendedTransationContext(ThrowingSupplier<T,E> action)
Execute an action with the thread prepared for enlisting transactional resources.
|
static <T,R> TransactionConnectorCoordinator<T,R> |
getInstance(IThreadConnectableTransactionManager<T,R> txManager) |
static <T,R,E extends Exception> |
onEndChildThread(ThrowingRunnable<E> action)
Execute an action when the thread ends, if it is guarded by a TransactionConnector
|
void |
registerConnector(TransactionConnector connector) |
void |
resumeTransaction() |
void |
resumeTransactionInChildThread(TransactionConnector<T,R> requester) |
void |
suspendTransaction() |
public static <T,R> TransactionConnectorCoordinator<T,R> getInstance(IThreadConnectableTransactionManager<T,R> txManager)
public void registerConnector(TransactionConnector connector)
public static <T,R,E extends Exception> T doInUnsuspendedTransationContext(ThrowingSupplier<T,E> action) throws E extends Exception
public static <T,R,E extends Exception> boolean onEndChildThread(ThrowingRunnable<E> action)
public void resumeTransactionInChildThread(TransactionConnector<T,R> requester)
public void suspendTransaction()
public void resumeTransaction()
public void close()
close
in interface AutoCloseable
Copyright © 2023 Frank!Framework. All rights reserved.