Client and Server containers extend this to provide additional functionality.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| protected static interface |
| Modifier and Type | Field and Description |
|---|---|
| private final Object | EXECUTORS_CLEAN_UP_LOCK
This lock ensures that only one instance of each type of executors will be created and it also prevents a situation when a client is given an executor that is just about to be shut down. |
| private volatile ExecutorService | |
| private static final Logger | |
| private final ExecutorService | |
| private final ScheduledExecutorService | |
| private volatile ScheduledExecutorService | |
| private final ThreadFactory |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ExecutorService | Returns: executor service.Implements abstract org. Returns a container-managed |
| public ScheduledExecutorService | Returns: scheduled executor service.Implements abstract org. Returns a container-managed |
| private ExecutorService | |
| private ScheduledExecutorService | |
| public void | |
| protected void | shutdown(BaseContainer.
condition that will be evaluated before executor services are released and they will be
released only if the condition is evaluated to shutDownConditiontrue. The condition will be
evaluated in a synchronized block in order to make the process of its evaluation
and executor services release an atomic operation.Release executor services managed by this instance if the condition passed in the parameter is fulfilled. |
| EXECUTORS_CLEAN_UP_LOCK | back to summary |
|---|---|
| private final Object EXECUTORS_CLEAN_UP_LOCK This lock ensures that only one instance of each type of executors will be created and it also prevents a situation when a client is given an executor that is just about to be shut down. | |
| executorService | back to summary |
|---|---|
| private volatile ExecutorService executorService | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| managedExecutorService | back to summary |
|---|---|
| private final ExecutorService managedExecutorService | |
| managedScheduledExecutorService | back to summary |
|---|---|
| private final ScheduledExecutorService managedScheduledExecutorService | |
| scheduledExecutorService | back to summary |
|---|---|
| private volatile ScheduledExecutorService scheduledExecutorService | |
| threadFactory | back to summary |
|---|---|
| private final ThreadFactory threadFactory | |
| BaseContainer | back to summary |
|---|---|
| public BaseContainer() | |
| getExecutorService | back to summary |
|---|---|
| public ExecutorService getExecutorService() Implements abstract org. Returns a container-managed
| |
| getScheduledExecutorService | back to summary |
|---|---|
| public ScheduledExecutorService getScheduledExecutorService() Implements abstract org. Returns a container-managed
| |
| lookupManagedExecutorService | back to summary |
|---|---|
| private ExecutorService lookupManagedExecutorService() | |
| lookupManagedScheduledExecutorService | back to summary |
|---|---|
| private ScheduledExecutorService lookupManagedScheduledExecutorService() | |
| shutdown | back to summary |
|---|---|
| public void shutdown() Release executor services managed by this instance. Executor services obtained via JNDI lookup won't be shut down. | |
| shutdown | back to summary |
|---|---|
| protected void shutdown(BaseContainer. Release executor services managed by this instance if the condition passed in the parameter is fulfilled. Executor services obtained via JNDI lookup won't be shut down.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final String | |
| pack-priv static final AtomicInteger | |
| pack-priv final AtomicInteger |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Thread | newThread(Runnable
a runnable to be executed by new thread instance r)Implements java. Constructs a new unstarted |
| namePrefix | back to summary |
|---|---|
| pack-priv final String namePrefix | |
| poolNumber | back to summary |
|---|---|
| pack-priv static final AtomicInteger poolNumber | |
| threadNumber | back to summary |
|---|---|
| pack-priv final AtomicInteger threadNumber | |
| DaemonThreadFactory | back to summary |
|---|---|
| pack-priv DaemonThreadFactory() | |
| newThread | back to summary |
|---|---|
| public Thread newThread(Runnable r) Implements java. Doc from java. Constructs a new unstarted | |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| evaluate | back to summary |
|---|---|
| public boolean evaluate() | |