Uses of Interface
nl.talsmasoftware.context.ContextSnapshot
-
Packages that use ContextSnapshot Package Description nl.talsmasoftware.context Main package defining the corecontext-propagationconcepts in this librarynl.talsmasoftware.context.delegation Layered code for delegation such asCallMappingExecutorService.nl.talsmasoftware.context.functions Java 8 functional interface wrappers that apply context snapshots to the mapped functions.nl.talsmasoftware.context.futures Package for context-aware javaFuturecode. -
-
Uses of ContextSnapshot in nl.talsmasoftware.context
Methods in nl.talsmasoftware.context that return ContextSnapshot Modifier and Type Method Description static ContextSnapshotContextManagers. createContextSnapshot()This method is able to create a 'snapshot' from the currentactive contextfrom all knownContextManagerimplementations. -
Uses of ContextSnapshot in nl.talsmasoftware.context.delegation
Methods in nl.talsmasoftware.context.delegation that return ContextSnapshot Modifier and Type Method Description ContextSnapshotContextSnapshotSupplier. get()Supply a snapshot.protected ContextSnapshotWrapperWithContext. snapshot()Calls the supplier for the context snapshot, making sure it is called only once for this wrapper instance.Constructors in nl.talsmasoftware.context.delegation with parameters of type ContextSnapshot Constructor Description WrapperWithContext(ContextSnapshot snapshot, T delegate)Creates a new Wrapper with the specified context snapshot. -
Uses of ContextSnapshot in nl.talsmasoftware.context.functions
Fields in nl.talsmasoftware.context.functions with type parameters of type ContextSnapshot Modifier and Type Field Description protected Consumer<ContextSnapshot>WrapperWithContextAndConsumer. contextSnapshotConsumerThe context snapshot consumer to provide a new snapshot to after the function is completed, may benull.protected Consumer<ContextSnapshot>WrapperWithContextAndConsumer. contextSnapshotConsumerThe context snapshot consumer to provide a new snapshot to after the function is completed, may benull.protected Consumer<ContextSnapshot>WrapperWithContextAndConsumer. contextSnapshotConsumerThe context snapshot consumer to provide a new snapshot to after the function is completed, may benull.protected Consumer<ContextSnapshot>WrapperWithContextAndConsumer. contextSnapshotConsumerThe context snapshot consumer to provide a new snapshot to after the function is completed, may benull.protected Consumer<ContextSnapshot>WrapperWithContextAndConsumer. contextSnapshotConsumerThe context snapshot consumer to provide a new snapshot to after the function is completed, may benull.protected Consumer<ContextSnapshot>WrapperWithContextAndConsumer. contextSnapshotConsumerThe context snapshot consumer to provide a new snapshot to after the function is completed, may benull.protected Consumer<ContextSnapshot>WrapperWithContextAndConsumer. contextSnapshotConsumerThe context snapshot consumer to provide a new snapshot to after the function is completed, may benull.protected Consumer<ContextSnapshot>WrapperWithContextAndConsumer. contextSnapshotConsumerThe context snapshot consumer to provide a new snapshot to after the function is completed, may benull.protected Consumer<ContextSnapshot>WrapperWithContextAndConsumer. contextSnapshotConsumerThe context snapshot consumer to provide a new snapshot to after the function is completed, may benull.protected Consumer<ContextSnapshot>WrapperWithContextAndConsumer. contextSnapshotConsumerThe context snapshot consumer to provide a new snapshot to after the function is completed, may benull.protected Consumer<ContextSnapshot>WrapperWithContextAndConsumer. contextSnapshotConsumerThe context snapshot consumer to provide a new snapshot to after the function is completed, may benull. -
Uses of ContextSnapshot in nl.talsmasoftware.context.futures
Methods in nl.talsmasoftware.context.futures with parameters of type ContextSnapshot Modifier and Type Method Description static ContextAwareCompletableFuture<Void>ContextAwareCompletableFuture. allOf(ContextSnapshot snapshot, CompletableFuture<?>... cfs)Returns a new CompletableFuture that is completed when all of the given CompletableFutures complete.static ContextAwareCompletableFuture<Object>ContextAwareCompletableFuture. anyOf(ContextSnapshot snapshot, CompletableFuture<?>... cfs)Returns a new CompletableFuture that is completed when any of the given CompletableFutures complete, with the same result.static <U> ContextAwareCompletableFuture<U>ContextAwareCompletableFuture. completedFuture(U value, ContextSnapshot snapshot)Creates a newContextAwareCompletableFuturefrom the already-completed value.static <U> ContextAwareCompletableFuture<U>ContextAwareCompletableFuture. failedFuture(Throwable ex, ContextSnapshot snapshot)Creates a newContextAwareCompletableFuturethat is already completed exceptionally with the given exception.static ContextAwareCompletableFuture<Void>ContextAwareCompletableFuture. runAsync(Runnable runnable, Executor executor, ContextSnapshot snapshot)Runs therunnabletask in the specifiedexecutorwithin the specifiedcontext snapshotand also applies that context to all successive calls to theCompletableFuture.static ContextAwareCompletableFuture<Void>ContextAwareCompletableFuture. runAsync(Runnable runnable, Executor executor, ContextSnapshot snapshot, boolean takeNewSnapshot)Runs therunnabletask in the specifiedexecutorwithin the specifiedcontext snapshotand also applies that context to all successive calls to theCompletableFuture.static <U> ContextAwareCompletableFuture<U>ContextAwareCompletableFuture. supplyAsync(Supplier<U> supplier, Executor executor, ContextSnapshot snapshot)Runs thesuppliertask in the specifiedexecutorwithin the specifiedcontext snapshotand also applies that context to all successive calls to theCompletableFuture.static <U> ContextAwareCompletableFuture<U>ContextAwareCompletableFuture. supplyAsync(Supplier<U> supplier, Executor executor, ContextSnapshot snapshot, boolean takeNewSnapshot)Runs thesuppliertask in the specifiedexecutorwithin the specifiedcontext snapshotand also applies that context to all successive calls to theCompletableFuture.Constructors in nl.talsmasoftware.context.futures with parameters of type ContextSnapshot Constructor Description ContextAwareCompletableFuture(ContextSnapshot snapshot)Creates a newCompletableFuturewhere all completion methods are run within the specified snapshot context.
-