public interface Action
PerCacheInboundInvocationHandler
.Modifier and Type | Method and Description |
---|---|
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.
|
void |
cleanup(ActionState state)
Cleanups when it is no longer needed.
|
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.void addListener(ActionListener listener)
listener
- the ActionListener
to add.void cleanup(ActionState state)
state
- Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.