Package org.frankframework.core
Class TransactionAttributes
java.lang.Object
org.frankframework.core.TransactionAttributes
- All Implemented Interfaces:
HasTransactionAttribute
,IConfigurable
- Direct Known Subclasses:
AbstractJobDef
,AbstractPipe
,PipeLine
,Receiver
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Configure this component.static org.springframework.transaction.TransactionDefinition
configureTransactionAttributes
(org.apache.logging.log4j.Logger log, TransactionAttribute transactionAttribute, int transactionTimeoutInSeconds) boolean
static boolean
isTransacted
(TransactionAttribute txAtt) void
setTransacted
(boolean transacted) Deprecated.void
setTransactionTimeout
(int transactionTimeoutSeconds) Set transactionTimeout in seconds.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.frankframework.core.HasTransactionAttribute
getTransactionAttribute, getTransactionTimeout, getTxDef, setTransactionAttribute
-
Field Details
-
log
protected org.apache.logging.log4j.Logger log
-
-
Constructor Details
-
TransactionAttributes
public TransactionAttributes()
-
-
Method Details
-
configure
Description copied from interface:IConfigurable
Configure this component.configure()
is called once at startup of the framework in the configure method of the owner of thisIConfigurable
. Purpose of this method is to check whether the static configuration of the object is correct. As much as possible class-instantiating should take place in theconfigure()
, to improve performance.In the case of a container, this will propagate the configure signal to all components that apply.
- Specified by:
configure
in interfaceIConfigurable
- Throws:
ConfigurationException
- in case it was not able to configure the component.
-
configureTransactionAttributes
public static org.springframework.transaction.TransactionDefinition configureTransactionAttributes(org.apache.logging.log4j.Logger log, TransactionAttribute transactionAttribute, int transactionTimeoutInSeconds) -
setTransacted
@Deprecated @ConfigurationWarning("implemented as setting of transacted=true as transactionAttribute=Required and transacted=false as transactionAttribute=Supports") public void setTransacted(boolean transacted) Deprecated. -
isTransacted
public boolean isTransacted() -
isTransacted
-
setTransactionTimeout
public void setTransactionTimeout(int transactionTimeoutSeconds) Set transactionTimeout in seconds.- Specified by:
setTransactionTimeout
in interfaceHasTransactionAttribute
- Parameters:
transactionTimeoutSeconds
- Time in seconds after which a transaction will fail.
-