Class PulsarContainerProperties.TransactionSettings
java.lang.Object
org.springframework.pulsar.core.TransactionProperties
org.springframework.pulsar.listener.PulsarContainerProperties.TransactionSettings
- Enclosing class:
- PulsarContainerProperties
Transaction related settings.
- Since:
- 1.1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDetermines the transaction definition to use by respecting any user configured timeout property.Get the transaction definition.Gets the transaction manager used to start transactions.void
setTransactionDefinition
(TransactionDefinition transactionDefinition) Set a transaction definition with properties (e.g.void
setTransactionManager
(PulsarAwareTransactionManager transactionManager) Set the transaction manager to start a transaction.Methods inherited from class org.springframework.pulsar.core.TransactionProperties
getTimeout, isEnabled, isRequired, setEnabled, setRequired, setTimeout
-
Constructor Details
-
TransactionSettings
public TransactionSettings()
-
-
Method Details
-
getTransactionDefinition
Get the transaction definition.- Returns:
- the definition
-
setTransactionDefinition
Set a transaction definition with properties (e.g. timeout) that will be copied to the container's transaction template.- Parameters:
transactionDefinition
- the definition
-
determineTransactionDefinition
Determines the transaction definition to use by respecting any user configured timeout property.- Returns:
- the transaction definition to use including any user specified timeout setting
-
getTransactionManager
Gets the transaction manager used to start transactions.- Returns:
- the transaction manager
-
setTransactionManager
Set the transaction manager to start a transaction.- Parameters:
transactionManager
- the transaction manager
-