Package io.smallrye.faulttolerance.core
Class InvocationContext<V>
- java.lang.Object
-
- io.smallrye.faulttolerance.core.InvocationContext<V>
-
-
Constructor Summary
Constructors Constructor Description InvocationContext(Callable<V> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vcall()<E extends InvocationContextEvent>
voidfireEvent(E event)<T> Tget(Class<T> clazz)<T> Tget(Class<T> clazz, T defaultValue)<E extends InvocationContextEvent>
voidregisterEventHandler(Class<E> eventType, Consumer<E> handler)<T> voidremove(Class<T> clazz)<T> voidset(Class<T> clazz, T object)
-
-
-
Method Detail
-
set
public <T> void set(Class<T> clazz, T object)
-
remove
public <T> void remove(Class<T> clazz)
-
get
public <T> T get(Class<T> clazz)
-
get
public <T> T get(Class<T> clazz, T defaultValue)
-
registerEventHandler
public <E extends InvocationContextEvent> void registerEventHandler(Class<E> eventType, Consumer<E> handler)
-
fireEvent
public <E extends InvocationContextEvent> void fireEvent(E event)
-
-