public class WaiterExecutorServiceFactory extends Object
ExecutorServiceto be used by asynchronous waiter executions. By default, this factory will build a cached thread-pool which will either re-use a recently completed thread or create a new thread every time a new execution is requested. Executions will never be blocked by the
ExecutorServiceitself, but may end up competing for limited resources under extremely high loads.
|Constructor and Description|
|Modifier and Type||Method and Description|
Construct a new
public static ExecutorService buildExecutorServiceForWaiter(String name)
ExecutorServiceto be used by a specific client Waiter class. Threads will still be uniquely named, but will also contain the name of the Waiter for easier identification.
name- The name of the Waiter class that is using the ExecutorService.
ExecutorServicethat can be used for asynchronous executions of the named Waiter.