nl.talsmasoftware.context.ContextSnapshotnl.talsmasoftware.context.ContextSnapshotpublic interface ContextSnapshot
extends nl.talsmasoftware.context.ContextSnapshot
ContextManager implementations.
This allows for a generic method to:
ContextSnapshot along to a background job.reactivate the snapshot
for some required code path.Context of its own. Although it does not return any specific
value, it can be closed, which is very useful
to prevent context values leaking in case the used threads will be returned to some pool.| Modifier and Type | Method | Description |
|---|---|---|
Context<Void> |
reactivate() |
Deprecated.
This method activates all contained values by the snapshot in their respective
Context implementations. |
Context<Void> reactivate()
Context implementations.
These reactivated contexts can all be closed at once by closing the returned Void context.
The resulting context is Void, because it does not contain any value itself.
reactivate in interface nl.talsmasoftware.context.ContextSnapshotCopyright © 2016–2018 Talsma ICT. All rights reserved.