public class ExitConditionImpl extends Object implements IExitCondition, Runnable
Constructor and Description |
---|
ExitConditionImpl()
Create an empty exit controller that will have no effect.
|
ExitConditionImpl(ISettingsMap exitCondition,
IApplicationExitReporter callback)
Create an effective exit condition.
|
Modifier and Type | Method and Description |
---|---|
void |
evaluate()
Evaluate the exit conditions and fire the callback if matched.
|
void |
incRemainingObjects(long increment)
Indicates that some remaining object is to be handled (semantics: depending on the spout)
|
boolean |
isEnabled()
State whether exit condition will be used or not
|
void |
markAck()
Signal a data ack.
|
void |
markEmit()
Signal a data emit.
|
void |
markFail()
Signal a data failure.
|
void |
run() |
public ExitConditionImpl()
public ExitConditionImpl(ISettingsMap exitCondition, IApplicationExitReporter callback)
exitCondition
- the exit condition settings.callback
- callback when exitingpublic void evaluate()
IExitCondition
evaluate
in interface IExitCondition
public void markEmit()
IExitCondition
markEmit
in interface IExitCondition
public void markAck()
IExitCondition
markAck
in interface IExitCondition
public void markFail()
IExitCondition
markFail
in interface IExitCondition
public void incRemainingObjects(long increment)
IExitCondition
incRemainingObjects
in interface IExitCondition
public boolean isEnabled()
IExitCondition
isEnabled
in interface IExitCondition
Copyright © 2014–2022. All rights reserved.