Class CompositeAction
- java.lang.Object
-
- org.infinispan.remoting.inboundhandler.action.CompositeAction
-
- All Implemented Interfaces:
ActionListener,ReadyAction
public class CompositeAction extends Object implements ReadyAction, ActionListener
AReadyActionimplementation that delegates it logic to a collection of otherReadyAction.- Since:
- 8.1
- Author:
- Pedro Ruivo
-
-
Constructor Summary
Constructors Constructor Description CompositeAction(Collection<ReadyAction> actions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(ActionListener listener)It adds a listener that is invoked when this action is ready.booleanisReady()voidonComplete()Invoked when anActionis completed.voidonException()Cleanup when the command throws an exception while executing.voidonFinally()Invoked always after the command is executed and the reply is sent.voidregisterListener()
-
-
-
Constructor Detail
-
CompositeAction
public CompositeAction(Collection<ReadyAction> actions)
-
-
Method Detail
-
registerListener
public void registerListener()
-
isReady
public boolean isReady()
- Specified by:
isReadyin interfaceReadyAction- Returns:
trueif ready.
-
addListener
public void addListener(ActionListener listener)
Description copied from interface:ReadyActionIt adds a listener that is invoked when this action is ready.- Specified by:
addListenerin interfaceReadyAction- Parameters:
listener- the listener to invoke.
-
onException
public void onException()
Description copied from interface:ReadyActionCleanup when the command throws an exception while executing.- Specified by:
onExceptionin interfaceReadyAction
-
onFinally
public void onFinally()
Description copied from interface:ReadyActionInvoked always after the command is executed and the reply is sent.- Specified by:
onFinallyin interfaceReadyAction
-
onComplete
public void onComplete()
Description copied from interface:ActionListenerInvoked when anActionis completed.- Specified by:
onCompletein interfaceActionListener
-
-