Skip to content

TransactionManager.setTransactionTimeout(...) #22299

Answered by stuartwdouglas
famod asked this question in Q&A
Discussion options

You must be logged in to vote

That timeout sets the default timeout for the current thread. So you need to call that method, start a new TX, do your work, then revert the timeout to clear the thread local state.

This is spec required behavior. If #21115 is ever merged it will provide a much nicer API.

Replies: 2 comments

Comment options

famod
Dec 16, 2021
Collaborator Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by famod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants