T
- the transactionR
- a holder of suspended resourcespublic class TransactionConnector<T,R> extends Object implements AutoCloseable
Modifier and Type | Field and Description |
---|---|
protected org.apache.logging.log4j.Logger |
log |
Modifier and Type | Method and Description |
---|---|
void |
beginChildThread()
resume transaction, that was saved in parent thread, in the child thread.
|
void |
close()
close() to be called from parent thread, when child thread has ended.
|
void |
endChildThread()
endThread() to be called from child thread in a finally clause
|
static <T,R> TransactionConnector<T,R> |
getInstance(IThreadConnectableTransactionManager<T,R> txManager,
Object owner,
String description)
factory method, to be called from 'main' thread.
|
void |
onEndChildThread(List<ThrowingRunnable<?>> actions) |
String |
toString() |
public static <T,R> TransactionConnector<T,R> getInstance(IThreadConnectableTransactionManager<T,R> txManager, Object owner, String description)
public void beginChildThread()
public void endChildThread()
public void onEndChildThread(List<ThrowingRunnable<?>> actions)
public void close()
close
in interface AutoCloseable
Copyright © 2023 Frank!Framework. All rights reserved.