Package io.quarkus.narayana.jta
Class BeginOptions
java.lang.Object
io.quarkus.narayana.jta.BeginOptions
Builder interface to allow a transaction to be customized, including things like timeout and semantics when an existing
transaction is present.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean(package private) int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIf this method is called the transaction will be automatically committed when the request scope is destroyed, instead of being rolled back.timeout(int seconds) Sets the transaction timeout for transactions created by this builder.
-
Field Details
-
commitOnRequestScopeEnd
boolean commitOnRequestScopeEnd -
timeout
int timeout
-
-
Constructor Details
-
BeginOptions
public BeginOptions()
-
-
Method Details
-
commitOnRequestScopeEnd
If this method is called the transaction will be automatically committed when the request scope is destroyed, instead of being rolled back.- Returns:
- These options
-
timeout
Sets the transaction timeout for transactions created by this builder. A value of zero refers to the system default.- Parameters:
seconds- The timeout in seconds- Returns:
- This builder
- Throws:
IllegalArgumentException- If seconds is negative
-