Package com.pnfsoftware.jeb.util.concurrent
package com.pnfsoftware.jeb.util.concurrent
Types related to concurrency, synchronization, timed execution, and external process execution.
-
ClassDescriptionBase implementation for auto-closable locks.A non-static, customizable version of
ThreadUtil.An auto-closable lock intended for try-with-resources blocks.A runnable that can control its own execution.This exception can be raised when a concurrency error is detected.Static routines to create daemon thread pools.A thread manager specialized to create daemon threads.Thread monitoring details used by the staticmonitor()method as well as the more complexThreadMonitorobjects.Lock creator interface for auto-closable read-only and read-write locks.Standard implementation of theIMonitorInfoProviderinterface.This exception can be raised when an operation timed out before completion.A helpful class to safely execute short commands, in a blocking or non-blocking way with or without a timeout, and retrieve the exit code and generated output(s) as byte arrays.A wrapper aroundProcessto execute potentially long-running commands, that may require input.A rate-limiting event aggregator that buffers and forwards events to a destination target.Interface for the actual target for events.Standard implementation of a safe lock, using a serializable reentrant read-write lock.Utility methods forISafeLocks.ThreadEx<V>This class is used to monitor the execution of a target thread.Monitoring lifecycle states.Utility methods to manipulate threads.Enforce time-outs on operations and throwOperationTimedOutException.Enforce time-outs on operations and throwOperationTimedOutException.WeakConcurrentMap<K,V> A thread-safe map with weak keys.AWeakConcurrentMapwhere stale entries are removed as a side effect of interacting with this map.A thread-safe set with weak values.Determines the cleaning format.