public class ChannelConsumerCondition extends Object implements ActorCondition, ActorSubscription, ChannelSubscription
| Constructor and Description |
|---|
ChannelConsumerCondition(ActorJob job,
ConsumableChannel channel) |
| 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)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittriggersInPhasepublic ChannelConsumerCondition(ActorJob job, ConsumableChannel channel)
public boolean poll()
ActorSubscriptionActorThread to determine whether the subscription has work available.poll in interface ActorSubscriptionpublic void signal()
ActorConditionsignal in interface ActorConditionpublic void onJobCompleted()
ActorSubscriptionActorSubscription.getJob() completes execution.onJobCompleted 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 ActorSubscriptioncancel in interface ChannelSubscriptionCopyright © 2017–2019 camunda services GmbH. All rights reserved.