ch.tatool.core.element.handler.pause
Interface ExecutionPauseHandler

All Superinterfaces:
Node, PropertyHolder
All Known Implementing Classes:
DefaultExecutionPauseHandler

public interface ExecutionPauseHandler
extends Node

Handler that pauses the execution between two ExecutableElements.

Author:
Michael Ruflin

Method Summary
 long getCurrentInterElementPauseDuration()
          Get the duration of the pause after the current element execution.
 long getDefaultInterElementPauseDuration()
          Get the default pause duration between two element executions.
 void setCurrentInterElementPauseDuration(long currentInterElementPauseDuration)
          Set the duration for which the module is paused before executing the next element.
 void setDefaultInterElementPauseDuration(long defaultInterElementPauseDuration)
          Set the default duration for which the execution is paused in between two elements.
 
Methods inherited from interface ch.tatool.element.Node
getParent, setParent
 
Methods inherited from interface ch.tatool.data.PropertyHolder
clearProperties, getId, getKeys, getProperty, removeProperty, setProperty
 

Method Detail

setCurrentInterElementPauseDuration

void setCurrentInterElementPauseDuration(long currentInterElementPauseDuration)
Set the duration for which the module is paused before executing the next element.


getCurrentInterElementPauseDuration

long getCurrentInterElementPauseDuration()
Get the duration of the pause after the current element execution. return the pause duration after the current


setDefaultInterElementPauseDuration

void setDefaultInterElementPauseDuration(long defaultInterElementPauseDuration)
Set the default duration for which the execution is paused in between two elements.

Parameters:
duration - the duration in milliseconds

getDefaultInterElementPauseDuration

long getDefaultInterElementPauseDuration()
Get the default pause duration between two element executions.

Returns:
the duration in milliseconds


Copyright © 2012. All Rights Reserved.