The captured context represented by this snapshot can be applied to any number of threads, including concurrently.
Any state that is associated with context applied to a thread should
be kept, not within the snapshot, but within the distinct
ThreadContextRestorer instance that this
ThreadContextSnapshot creates each time it is applied
to a thread.
| Modifier and Type | Method and Description |
|---|---|
| public ThreadContextRestorer | Returns: restorer instance that reverts the state of this context type on the thread to what it was prior to applying this snapshot.Applies the captured thread context snapshot to the current thread and
returns a distinct |
| begin | back to summary |
|---|---|
| public ThreadContextRestorer begin() Applies the captured thread context snapshot to the current thread and
returns a distinct
For each invocation of this method, the Jakarta EE Product Provider
must invoke the corresponding
| |