public class DoActionsOncePolicy extends PeriodicPolicy
Policy.PolicyContext
Constructor and Description |
---|
DoActionsOncePolicy(long periodMs,
Action... actions) |
DoActionsOncePolicy(long periodMs,
List<Action> actions) |
Modifier and Type | Method and Description |
---|---|
void |
init(Policy.PolicyContext context) |
protected void |
runOneIteration() |
run
isStopped, stop
public DoActionsOncePolicy(long periodMs, List<Action> actions)
public DoActionsOncePolicy(long periodMs, Action... actions)
protected void runOneIteration()
runOneIteration
in class PeriodicPolicy
public void init(Policy.PolicyContext context) throws Exception
init
in class PeriodicPolicy
Exception
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.