Class DemandQueueHandler<T>
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.interpreter.DemandQueueHandler<T>
-
-
Constructor Summary
Constructors Constructor Description DemandQueueHandler(Queue<T> pendingDemands, BiConsumer<T,DemandQueueHandler<T>> demandHandler, Consumer<DemandQueueHandler<T>> onCompletionHandler)
-
-
-
Constructor Detail
-
DemandQueueHandler
public DemandQueueHandler(Queue<T> pendingDemands, BiConsumer<T,DemandQueueHandler<T>> demandHandler, Consumer<DemandQueueHandler<T>> onCompletionHandler)
- Parameters:
pendingDemands
- the queue of pending demands to be processeddemandHandler
- the behavior to be executed for each individual demand in the queueonCompletionHandler
- the behavior to be executed once all demands in the queue have been processed
-
-