AtomicInt extends the functionality of AtomicInteger to provide additional convenience functionality.
DelayedQueue allows enqueuing of items that are handled by the handler after a specific delay.
Executor is a light-weight wrapper around a Java ExecutorService backred by a cached thread-pool.
Pool offers a fairly simplistic object pooling implementation.
SimplePool offers defaults for most of Pool values and only really needs an implementation of create.
SimplePool offers defaults for most of Pool values and only really needs an implementation of create.
the item type in the pool.
Temporal represents an object that only exists for a specified period of time before being disposed.
Temporal represents an object that only exists for a specified period of time before being disposed. Regular check-ins are required to keep the object from timing out.
Time represents convenience values and utilities for lengths of time.
Time represents convenience values and utilities for lengths of time. All values are represented as Doubles of time in seconds.
WorkQueue provides a backing concurrent queue to store a backlog of work to be done and can be invoked arbitrarily based on the needs of the implementation.
WorkQueue provides a backing concurrent queue to store a backlog of work to be done and can be invoked arbitrarily based on the needs of the implementation.
Enqueueing work can be done via the companion object: WorkQueue.enqueue(workQueue, function).
NOTE: Implementations must make calls to doWork() and/or doAllWork() or the queue will never be processed.
DelayedQueue allows enqueuing of items that are handled by the handler after a specific delay.
If delay is 5.0 and quietPeriod is 2.0 items can continue to be added for three seconds before reaching the quiet period when items are backlogged.
the type of items this queue accepts