public interface Context
extends java.util.concurrent.Executor, org.hibernate.service.Service
Context
object, enabling alternative strategies for associating state
with the current reactive stream.Modifier and Type | Interface and Description |
---|---|
static class |
Context.Key<T> |
Modifier and Type | Method and Description |
---|---|
void |
execute(java.lang.Runnable runnable)
Run the given command in a context.
|
<T> T |
get(Context.Key<T> key)
Get a value associated with the current reactive stream,
or return null.
|
<T> void |
put(Context.Key<T> key,
T instance)
Associate a value with the current reactive stream.
|
void |
remove(Context.Key<?> key)
Remove a value associated with the current reactive stream.
|
<T> void put(Context.Key<T> key, T instance)
<T> T get(Context.Key<T> key)
void remove(Context.Key<?> key)
void execute(java.lang.Runnable runnable)
execute
in interface java.util.concurrent.Executor