Package adams.flow.execution
Interface FlowExecutionListeningSupporter
-
- All Known Implementing Classes:
DefaultFlowExecutionListeningSupporter,ExecuteActor,Flow
public interface FlowExecutionListeningSupporterInterface for classes that support listening usingFlowExecutionListener.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanStartListeningAtRuntime()Returns whether listeners can be attached at runtime.FlowExecutionListenergetFlowExecutionListener()Returns the current listener in use.booleanisFlowExecutionListeningEnabled()Returns whether flow execution listening is enabled.voidsetFlowExecutionListener(FlowExecutionListener l)Sets the listener to use.voidsetFlowExecutionListeningEnabled(boolean value)Sets whether flow execution listening is enabled.booleanstartListeningAtRuntime(FlowExecutionListener l)Attaches the listener and starts listening.
-
-
-
Method Detail
-
setFlowExecutionListeningEnabled
void setFlowExecutionListeningEnabled(boolean value)
Sets whether flow execution listening is enabled.- Parameters:
value- true if to enable listening
-
isFlowExecutionListeningEnabled
boolean isFlowExecutionListeningEnabled()
Returns whether flow execution listening is enabled.- Returns:
- true if listening is enabled
-
setFlowExecutionListener
void setFlowExecutionListener(FlowExecutionListener l)
Sets the listener to use.- Parameters:
l- the listener to use
-
getFlowExecutionListener
FlowExecutionListener getFlowExecutionListener()
Returns the current listener in use.- Returns:
- the listener
-
canStartListeningAtRuntime
boolean canStartListeningAtRuntime()
Returns whether listeners can be attached at runtime.- Returns:
- true if listeners can be attached dynamically
-
startListeningAtRuntime
boolean startListeningAtRuntime(FlowExecutionListener l)
Attaches the listener and starts listening.- Parameters:
l- the listener to attach and use immediately- Returns:
- true if listening could be started successfully
-
-