public class WaiterExecutorServiceFactory extends Object
ExecutorService
to 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 ExecutorService
itself, but may end up competing for limited resources under
extremely high loads.Constructor and Description |
---|
WaiterExecutorServiceFactory() |
Modifier and Type | Method and Description |
---|---|
static ExecutorService |
buildExecutorServiceForWaiter(String name)
Construct a new
ExecutorService to be used by a specific client Waiter class. |
public static ExecutorService buildExecutorServiceForWaiter(String name)
ExecutorService
to 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.ExecutorService
that can be used for asynchronous executions of the named Waiter.Copyright © 2019. All rights reserved.