Class ConcurrentUtil
java.lang.Object
org.jpos.util.ConcurrentUtil
Helpers that build pre-tuned
java.util.concurrent primitives for
use across jPOS, currently focused on virtual-thread-backed scheduled
executors with sensible shutdown semantics.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScheduledThreadPoolExecutorReturns a single-threadScheduledThreadPoolExecutorbacked by a named virtual thread, configured to drop delayed/periodic tasks at shutdown.
-
Constructor Details
-
ConcurrentUtil
public ConcurrentUtil()Utility class; instances carry no state.
-
-
Method Details
-
newScheduledThreadPoolExecutor
Returns a single-threadScheduledThreadPoolExecutorbacked by a named virtual thread, configured to drop delayed/periodic tasks at shutdown.- Returns:
- the configured scheduler
-