public class BlockingPollSubscription extends Object implements ActorSubscription, Runnable
| Constructor and Description |
|---|
BlockingPollSubscription(ActorJob subscriptionJob,
Runnable blockingAction,
ActorExecutor actorTaskExecutor,
boolean isRecurring) |
| Modifier and Type | Method and Description |
|---|---|
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 |
run() |
void |
submit() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancel, triggersInPhasepublic BlockingPollSubscription(ActorJob subscriptionJob, Runnable blockingAction, ActorExecutor actorTaskExecutor, boolean isRecurring)
public 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 onJobCompleted()
ActorSubscriptionActorSubscription.getJob() completes execution.onJobCompleted in interface ActorSubscriptionpublic void submit()
Copyright © 2017–2019 camunda services GmbH. All rights reserved.