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 TypeMethodDescriptionvoidConfigure this component.static org.springframework.transaction.TransactionDefinitionconfigureTransactionAttributes(org.apache.logging.log4j.Logger log, TransactionAttribute transactionAttribute, int transactionTimeoutInSeconds) booleanstatic booleanisTransacted(TransactionAttribute txAtt) voidsetTransacted(boolean transacted) Deprecated.voidsetTransactionTimeout(int transactionTimeoutSeconds) Set transactionTimeout in seconds.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:IConfigurableConfigure 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:
configurein 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:
setTransactionTimeoutin interfaceHasTransactionAttribute- Parameters:
transactionTimeoutSeconds- Time in seconds after which a transaction will fail.
-