public interface Context extends 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 interface |
Context.Key<T>
An object that identifies something we store in the Vert.x
local context, usually a
Session or
StatelessSession , but in principle anything at all. |
Modifier and Type | Method and Description |
---|---|
void |
execute(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)
Copyright © 2020-2022 Red Hat, Inc. All Rights Reserved.