Uses of Class
org.jppf.utils.concurrent.QueueHandler.Builder
Packages that use QueueHandler.Builder
Package
Description
Utility and helper classes for concurrent programming.
-
Uses of QueueHandler.Builder in org.jppf.utils.concurrent
Methods in org.jppf.utils.concurrent that return QueueHandler.BuilderModifier and TypeMethodDescriptionstatic <E> QueueHandler.Builder<E>QueueHandler.builder()Create a builder to construct and configure aQueueHandler.QueueHandler.Builder.handlingElementsAs(QueueHandler.ElementHandler<E> handler) Set the element handler used by the dequeuer threads, if any.QueueHandler.Builder.handlingPeakSizeAs(QueueHandler.PeakSizeUpdateCallback peakSizeUpdateCallback) Set the function invoked whenever a new peak queue size is reached.Set the name of the dequeuer threads, or the name prefix if there are more than one thread.QueueHandler.Builder.usingDequuerThreads(int nbThreads) Set the number of dequeuer threads.QueueHandler.Builder.usingSingleDequuerThread()Set the number of dequeuer threads to 1.QueueHandler.Builder.withCapacity(int capacity) Set the capacity (maximum size) of the queue.