public final class DefaultFakeLoadScheduler extends Object implements FakeLoadScheduler
FakeLoadScheduler interface.
FakeLoad objects are scheduled for execution via the schedule(FakeLoad) method.
This class uses the FakeLoad.iterator() method to determine the order for
scheduling of the FakeLoad object.
As the iterator already takes the number of repetitions under account, the default
scheduler can just iterate over the submitted FakeLoad object in a foreach loop.
The actual scheduling is done using CompletableFutures and the common thread pool.FakeLoadScheduler,
FakeLoad| Constructor and Description |
|---|
DefaultFakeLoadScheduler(SimulationInfrastructure infrastructure)
Creates a new
DefaultFakeLoadScheduler instance using the specified infrastructure |
| Modifier and Type | Method and Description |
|---|---|
Future<Void> |
schedule(FakeLoad fakeLoad)
Schedules a
FakeLoad's load instructions for execution at the right time. |
public DefaultFakeLoadScheduler(SimulationInfrastructure infrastructure)
DefaultFakeLoadScheduler instance using the specified infrastructureinfrastructure - the simulation infrastructure to be usedpublic Future<Void> schedule(FakeLoad fakeLoad)
FakeLoadSchedulerFakeLoad's load instructions for execution at the right time.schedule in interface FakeLoadSchedulerfakeLoad - the FakeLoad object to be scheduled.Copyright © 2017. All rights reserved.