public class ActorConditionImpl extends Object implements ActorCondition, ActorSubscription
| Constructor and Description |
|---|
ActorConditionImpl(String conditionName,
ActorJob job) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
ActorJob |
getJob()
called by the
ActorThread after ActorSubscription.poll() returned true to get the job to be run |
boolean |
isRecurring()
Returns true in case the subscription is recurring (ie.
|
void |
onJobCompleted()
callback received as the job returned by
ActorSubscription.getJob() completes execution. |
boolean |
poll()
called by the
ActorThread to determine whether the subscription has work available. |
void |
signal()
notify that the condition is met (true)
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittriggersInPhasepublic void signal()
ActorConditionsignal in interface ActorConditionpublic void onJobCompleted()
ActorSubscriptionActorSubscription.getJob() completes execution.onJobCompleted in interface ActorSubscriptionpublic boolean poll()
ActorSubscriptionActorThread to determine whether the subscription has work available.poll in interface ActorSubscriptionpublic ActorJob getJob()
ActorSubscriptionActorThread after ActorSubscription.poll() returned true to get the job to be rungetJob in interface ActorSubscriptionpublic boolean isRecurring()
ActorSubscriptionisRecurring in interface ActorSubscriptionpublic void cancel()
cancel in interface ActorConditioncancel in interface ActorSubscriptionCopyright © 2017–2019 camunda services GmbH. All rights reserved.