Skip to content

[Hibernate][JPA][Reactive] Does .withBackoff still execute on the executor-thread? #45849

Answered by jponge
agreedSkiing asked this question in Q&A
Discussion options

You must be logged in to vote

One might want to use a Vert.x context aware scheduler in such cases.

The backoff needs a scheduled executor, so the rest of the execution on a retry is from a thread from this executor. ContextAwareScheduler provides helpers to make sure that such executed tasks trigger a hop to the original Vert.x duplicated context. You will need to use .withExecutor(...) to configure this.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@agreedSkiing
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by agreedSkiing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/hibernate-reactive Hibernate Reactive
3 participants