| Constructor and Description |
|---|
Hoarde(int numActors,
Class<T> actor)
create a hoarde with each actor having a dedicated thread
|
Hoarde(int numActors,
Class<T> actor,
Scheduler sched)
create a hoarde scheduled on given scheduler
|
| Modifier and Type | Method and Description |
|---|---|
Hoarde<T> |
each(BiConsumer<T,Integer> init)
same as other each but with index
|
Hoarde<T> |
each(Consumer<T> tocall)
iterate over each actor and execute tocall.
|
T |
getActor(int i) |
int |
getSize() |
<X> IPromise<T>[] |
map(BiFunction<T,Integer,IPromise<X>> init) |
IPromise |
ordered(Function<T,IPromise> toCall)
calls given function round robin.
|
public Hoarde(int numActors,
Class<T> actor)
numActors - actor - public Hoarde<T> each(Consumer<T> tocall)
tocall - public Hoarde<T> each(BiConsumer<T,Integer> init)
init - public IPromise ordered(Function<T,IPromise> toCall)
toCall - public int getSize()
public T getActor(int i)
Copyright © 2017. All rights reserved.