public interface Action
PerCacheInboundInvocationHandler.| Modifier and Type | Method and Description |
|---|---|
default void |
addListener(ActionListener listener)
Adds a listener to be invoked when this action is ready or canceled.
|
ActionStatus |
check(ActionState state)
It checks this action.
|
default void |
onException(ActionState state)
Invoked when an exception occurs while processing the command.
|
default void |
onFinally(ActionState state)
Invoked always after the command is executed.
|
ActionStatus check(ActionState state)
ActionStatus.READY or ActionStatus.CANCELED are final states.
This method should be thread safe and idempotent since it can be invoked multiple times by multiples threads.state - the current state.default void addListener(ActionListener listener)
listener - the ActionListener to add.default void onException(ActionState state)
state - the current state.default void onFinally(ActionState state)
state - the current state.\Copyright © 2022 JBoss by Red Hat. All rights reserved.