Package org.threadly.concurrent.wrapper
Wrappers for wrapping thread pools as a way to modify behavior, monitor, or otherwise extend
the functionality of the pool. In addition wrappers for tasks (ie
Runnable
)
are included in this package.-
Class Summary Class Description KeyDistributedExecutor TaskDistributor is designed such that tasks executed on it for a given key will run in a single threaded manner.KeyDistributedScheduler This is a class which is more full featured thanKeyDistributedExecutor
, but it does require a scheduler implementation in order to be able to perform scheduling.RunnableChain A class to chain multiple runnables to later be run together, within the same thread.SchedulerExecutorDelegator Class which takes in both an executor and a scheduler.SubmitterExecutorAdapter A simple wrapper class forExecutor
implementations to provideSubmitterExecutor
capabilities.ThrowableSuppressingRunnable Class that is designed to wrap a runnable, and prevent any throwables from propagating out of the run function.