Package com.linkedin.venice.fastclient
Interface ExecutionContextProvider.CapturedContext
- Enclosing interface:
- ExecutionContextProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidRun the task synchronously, exactly once, under the captured context.default <K,V> StreamingCallback<K, V> wrap(StreamingCallback<K, V> callback) default Runnabledefault <T,U> BiConsumer<T, U> wrap(BiConsumer<T, U> callback)
-
Field Details
-
NO_OP
-
-
Method Details
-
run
Run the task synchronously, exactly once, under the captured context. Implementations must restore the executing thread's previous context in a finally block, including when the task throws. Task exceptions must propagate without retrying the task or falling back to execution without context. -
wrap
-
wrap
-
wrap
-