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 | Method and Description |
---|---|
void |
execute(java.lang.Runnable runnable)
Run the given command in a context.
|
<T> T |
get(java.lang.Class<T> key,
java.lang.String id)
Get a value associated with the current reactive stream,
or return null.
|
<T> void |
put(java.lang.Class<T> key,
java.lang.String id,
T instance)
Associate a value with the current reactive stream.
|
void |
remove(java.lang.Class<?> key,
java.lang.String id)
Remove a value associated with the current reactive stream.
|
<T> void put(java.lang.Class<T> key, java.lang.String id, T instance)
<T> T get(java.lang.Class<T> key, java.lang.String id)
void remove(java.lang.Class<?> key, java.lang.String id)
void execute(java.lang.Runnable runnable)
execute
in interface java.util.concurrent.Executor