Interface HasTransactionAttribute

All Known Implementing Classes:
AbstractCollectorPipe, AbstractJobDef, AbstractLdapQueryPipe, AbstractPipe, AbstractValidator, ActionJob, ApiPrincipalPipe, AsyncSenderWithListenerPipe, Base64Pipe, BlobLineIteratingPipe, BytesOutputPipe, CheckReloadJob, ChecksumPipe, CleanupDatabaseJob, CleanupFileSystemJob, ClobLineIteratingPipe, CompareIntegerPipe, CompareStringPipe, CompressPipe, CounterSwitchPipe, CredentialCheckingPipe, CrlPipe, CsvParserPipe, DatabaseJob, DataSonnetPipe, DelayPipe, DomainTransformerPipe, EchoPipe, EscapePipe, EtagHandlerPipe, ExceptionPipe, ExecuteQueryJob, FileLineIteratorPipe, FilenameSwitch, FixedForwardPipe, FixedResultPipe, ForEachChildElementPipe, ForPipe, GetFromSession, GetPrincipalPipe, HashPipe, IbisActionJob, IncreaseIntegerPipe, IsUserInRolePipe, IsXmlPipe, IteratingPipe, JdbcIteratingPipeBase, Job, Json2XmlValidator, JsonPipe, JsonValidator, JsonWellFormedChecker, JsonXsltPipe, JwtPipe, LdapChallengePipe, LdapFindGroupMembershipsPipe, LdapFindMemberPipe, LoadDatabaseSchedulesJob, LobLineIteratingPipeBase, Locker, LogContextPipe, MailSenderPipe, MessageSendingPipe, PasswordGeneratorPipe, PasswordHashPipe, PGPPipe, PipeLine, PostboxRetrieverPipe, PutInSession, PutParametersInSession, PutSystemDateInSession, Receiver, RecoverAdaptersJob, RegExPipe, RemoveCacheKeyPipe, RemoveFromSession, ReplacerPipe, ResultSetIteratingPipe, SenderPipe, SendMessageJob, SignaturePipe, SizePipe, SkipPipe, SoapValidator, SoapWrapperPipe, Stream2StringPipe, StreamLineIteratorPipe, StreamPipe, StringIteratorPipe, Text2XmlPipe, TextSplitterPipe, TimeoutGuardPipe, TransactionAttributes, UnzipPipe, UUIDGeneratorPipe, WsdlGeneratorPipe, WsdlXmlValidator, XmlBuilderPipe, XmlFileElementIteratorPipe, XmlIf, XmlSwitch, XmlValidator, XmlWellFormedChecker, XQueryPipe, XsltPipe, ZipIteratorPipe, ZipWriterPipe

public interface HasTransactionAttribute
The HasTransactionAttribute allows Pipes to declare transaction and isolation behavior. The pipeline uses this to start a new transaction or suspend the current one when required.
Since:
4.5
Author:
Gerrit van Brakel
  • Method Details

    • setTransactionAttribute

      void setTransactionAttribute(TransactionAttribute attribute) throws ConfigurationException
      The transactionAttribute declares transactional behavior of execution. It applies both to database transactions and XA transactions. The pipeline uses this to start a new transaction or suspend the current one when required. For developers: it is equal to <a href=\"https://docs.oracle.com/javaee/7/tutorial/transactions003.htm\">EJB transaction attribute. Possible values for transactionAttribute: <table border=\"1\"> transactionAttributecallers TransactionPipeline excecuted in Transaction <td colspan=\"1\" rowspan=\"2\">Required noneT2 T1 T1 <td colspan=\"1\" rowspan=\"2\">RequiresNew noneT2 T1 T2 <td colspan=\"1\" rowspan=\"2\">Mandatory noneerror T1 T1 <td colspan=\"1\" rowspan=\"2\">NotSupportednonenone T1 none <td colspan=\"1\" rowspan=\"2\">Supports nonenone T1 T1 <td colspan=\"1\" rowspan=\"2\">Never nonenone T1 error
      Throws:
      ConfigurationException
      Default value
      Supports
    • getTransactionAttribute

      TransactionAttribute getTransactionAttribute()
    • setTransactionTimeout

      void setTransactionTimeout(int i)
      Timeout (in seconds) of transaction started to process a message.
      Default value
      0 (use system default)
    • getTransactionTimeout

      int getTransactionTimeout()
    • getTxDef

      org.springframework.transaction.TransactionDefinition getTxDef()