| Modifier and Type | Field and Description |
|---|---|
| protected volatile ThreadPoolConfig | |
| private volatile AbstractThreadPool | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | awaitTermination(long timeout, TimeUnit unit)
Implements java. Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first. |
| public static GrizzlyExecutorService | |
| public static GrizzlyExecutorService | |
| public void | execute(Runnable r)
Implements java. Executes the given command at some time in the future. |
| public ThreadPoolConfig | |
| public MonitoringConfig | getMonitoringConfig()
Implements org. Return the object associated |
| public boolean | isShutdown()
Implements java. Returns |
| public boolean | isTerminated()
Implements java. Returns |
| public GrizzlyExecutorService | Returns: returnsGrizzlyExecutorServiceSets the |
| protected final void | |
| public void | shutdown()
Implements java. Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted. |
| public List | shutdownNow()
Implements java. Attempts to stop all actively executing tasks, halts the processing of waiting tasks, and returns a list of the tasks that were awaiting execution. |
| config | back to summary |
|---|---|
| protected volatile ThreadPoolConfig config | |
| pool | back to summary |
|---|---|
| private volatile AbstractThreadPool pool | |
| statelock | back to summary |
|---|---|
| private final Object statelock | |
| GrizzlyExecutorService | back to summary |
|---|---|
| protected GrizzlyExecutorService(ThreadPoolConfig config) | |
| awaitTermination | back to summary |
|---|---|
| public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException Implements java. Doc from java. Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first.
| |
| createInstance | back to summary |
|---|---|
| public static GrizzlyExecutorService createInstance() | |
| createInstance | back to summary |
|---|---|
public static GrizzlyExecutorService createInstance(ThreadPoolConfig cfg)
| |
| execute | back to summary |
|---|---|
| public void execute(Runnable r) Implements java. Doc from java. Executes the given command at some time in the future. The command
may execute in a new thread, in a pooled thread, or in the calling
thread, at the discretion of the
| |
| getConfiguration | back to summary |
|---|---|
public ThreadPoolConfig getConfiguration()
| |
| getMonitoringConfig | back to summary |
|---|---|
| public MonitoringConfig Implements org. Doc from org. Return the object associated
| |
| isShutdown | back to summary |
|---|---|
| public boolean isShutdown() Implements java. Doc from java. Returns
| |
| isTerminated | back to summary |
|---|---|
| public boolean isTerminated() Implements java. Doc from java. Returns
| |
| reconfigure | back to summary |
|---|---|
| public GrizzlyExecutorService reconfigure(ThreadPoolConfig config) Sets the
| |
| setImpl | back to summary |
|---|---|
| protected final void setImpl(ThreadPoolConfig cfg) | |
| shutdown | back to summary |
|---|---|
| public void shutdown() Implements java. Doc from java. Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted. Invocation has no additional effect if already shut down. This method does not wait for previously submitted tasks to
complete execution. Use
| |
| shutdownNow | back to summary |
|---|---|
| public List Implements java. Doc from java. Attempts to stop all actively executing tasks, halts the processing of waiting tasks, and returns a list of the tasks that were awaiting execution. This method does not wait for actively executing tasks to
terminate. Use There are no guarantees beyond best-effort attempts to stop
processing actively executing tasks. For example, typical
implementations will cancel via
| |