public abstract class ActorThreadGroup extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
groupName |
protected int |
numOfThreads |
protected MultiLevelWorkstealingGroup |
tasks |
protected ActorThread[] |
threads |
| Constructor and Description |
|---|
ActorThreadGroup(String groupName,
int numOfThreads,
int numOfQueuesPerThread,
ActorScheduler.ActorSchedulerBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
closeAsync() |
protected abstract TaskScheduler |
createTaskScheduler(MultiLevelWorkstealingGroup tasks,
ActorScheduler.ActorSchedulerBuilder builder) |
String |
getGroupName() |
protected abstract int |
getLevel(ActorTask actorTask) |
int |
getNumOfThreads() |
void |
start() |
void |
submit(ActorTask actorTask) |
protected final String groupName
protected int numOfThreads
protected final ActorThread[] threads
protected final MultiLevelWorkstealingGroup tasks
public ActorThreadGroup(String groupName, int numOfThreads, int numOfQueuesPerThread, ActorScheduler.ActorSchedulerBuilder builder)
protected abstract TaskScheduler createTaskScheduler(MultiLevelWorkstealingGroup tasks, ActorScheduler.ActorSchedulerBuilder builder)
public void submit(ActorTask actorTask)
protected abstract int getLevel(ActorTask actorTask)
public String getGroupName()
public int getNumOfThreads()
public void start()
public CompletableFuture<Void> closeAsync()
Copyright © 2017–2019 camunda services GmbH. All rights reserved.