public class ActorScheduler extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ActorScheduler.ActorSchedulerBuilder |
static interface |
ActorScheduler.ActorThreadFactory |
static class |
ActorScheduler.BlockingTasksThreadFactory |
static class |
ActorScheduler.DefaultActorThreadFactory |
| Constructor and Description |
|---|
ActorScheduler(ActorScheduler.ActorSchedulerBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
MetricsManager |
getMetricsManager() |
static ActorScheduler.ActorSchedulerBuilder |
newActorScheduler() |
static ActorScheduler |
newDefaultActorScheduler() |
void |
setBlockingTasksShutdownTime(java.time.Duration shutdownTime) |
void |
start() |
Future<Void> |
stop() |
ActorFuture<Void> |
submitActor(Actor actor)
Submits an non-blocking, CPU-bound actor.
|
ActorFuture<Void> |
submitActor(Actor actor,
boolean collectTaskMetrics)
Submits an non-blocking, CPU-bound actor.
|
ActorFuture<Void> |
submitActor(Actor actor,
boolean collectTaskMetrics,
int schedulingHints)
Submits an actor providing hints to the scheduler about how to best schedule the actor.
|
public ActorScheduler(ActorScheduler.ActorSchedulerBuilder builder)
public ActorFuture<Void> submitActor(Actor actor)
actor - the actor to submitpublic ActorFuture<Void> submitActor(Actor actor, boolean collectTaskMetrics)
actor - the actor to submitcollectTaskMetrics - controls whether metrics should be written for this actor. This has
the overhead cost (time & memory) for allocating the counters which are used to record the
metrics. Generally, metrics should not be recorded for short-lived tasks but only make
sense for long-lived tasks where a small overhead when initially submitting the actor is
acceptable.public ActorFuture<Void> submitActor(Actor actor, boolean collectTaskMetrics, int schedulingHints)
SchedulingHints class.actor - the actor to submitcollectTaskMetrics - controls whether metrics should be written for this actor. This has
the overhead cost (time & memory) for allocating the counters which are used to record the
metrics. Generally, metrics should not be recorded for short-lived tasks but only make
sense for long-lived tasks where a small overhead when initially submitting the actor is
acceptable.schedulingHints - additional scheduling hintpublic void start()
public void setBlockingTasksShutdownTime(java.time.Duration shutdownTime)
public static ActorScheduler.ActorSchedulerBuilder newActorScheduler()
public static ActorScheduler newDefaultActorScheduler()
public MetricsManager getMetricsManager()
Copyright © 2017–2019 camunda services GmbH. All rights reserved.