EventExecutorGroup
which will preserve Runnable
execution order but makes no guarantees about what
EventExecutor
(and therefore Thread
) will be used to execute the Runnable
s.
The EventExecutorGroup#next()
for the wrapped EventExecutorGroup
must NOT return
executors of type OrderedEventExecutor
.
Modifier and Type | Class and Description |
---|---|
private static class |
Modifier and Type | Field and Description |
---|---|
private final EventExecutorGroup | |
private final int |
Access | Constructor and Description |
---|---|
public | |
public | NonStickyEventExecutorGroup(EventExecutorGroup group, int maxTaskExecutePerRun)
Creates a new instance. |
Modifier and Type | Method and Description |
---|---|
public boolean | awaitTermination(long
the maximum time to wait timeout, TimeUnit the time unit of the timeout argument unit)Implements java. |
public void | execute(Runnable
the runnable task command)Implements java. |
public <T> List | invokeAll(Collection<? extends Callable<T>>
the collection of tasks tasks)Implements java. |
public <T> List | invokeAll(Collection<? extends Callable<T>>
the collection of tasks tasks, long the maximum time to wait timeout, TimeUnit the time unit of the timeout argument unit)Implements java. |
public <T> T | invokeAny(Collection<? extends Callable<T>>
the collection of tasks tasks)Implements java. |
public <T> T | invokeAny(Collection<? extends Callable<T>>
the collection of tasks tasks, long the maximum time to wait timeout, TimeUnit the time unit of the timeout argument unit)Implements java. |
public boolean | isShutdown()
Implements java. true if this executor has been shut down.
|
public boolean | isShuttingDown()
Implements io. true if and only if all EventExecutor s managed by this EventExecutorGroup
are being shut down gracefully or was shut down.
|
public boolean | isTerminated()
Implements java. true if all tasks have completed following shut down.
|
public Iterator | iterator()
Implements io. T .
|
private NonStickyEventExecutorGroup. | |
public EventExecutor | next()
Implements io. EventExecutor s managed by this EventExecutorGroup .
|
public ScheduledFuture | schedule(Runnable
the task to execute command, long the time from now to delay execution delay, TimeUnit the time unit of the delay parameter unit)Implements io. |
public <V> ScheduledFuture | schedule(Callable<V>
the function to execute callable, long the time from now to delay execution delay, TimeUnit the time unit of the delay parameter unit)Implements io. |
public ScheduledFuture | scheduleAtFixedRate(Runnable
the task to execute command, long the time to delay first execution initialDelay, long the period between successive executions period, TimeUnit the time unit of the initialDelay and period parameters unit)Implements io. initialDelay , then initialDelay + period , then
initialDelay + 2 * period , and so on.
|
public ScheduledFuture | scheduleWithFixedDelay(Runnable
the task to execute command, long the time to delay first execution initialDelay, long the delay between the termination of one
execution and the commencement of the next delay, TimeUnit the time unit of the initialDelay and delay parameters unit)Implements io. |
public void | shutdown()
Implements io. |
public Future | shutdownGracefully()
Implements io. shutdownGracefully(long, long, TimeUnit) with sensible default values.
|
public Future | shutdownGracefully(long
the quiet period as described in the documentation quietPeriod, long the maximum amount of time to wait until the executor is shutdown()
regardless if a task was submitted during the quiet period timeout, TimeUnit the unit of unit)quietPeriod and timeout Implements io. |
public List | shutdownNow()
Implements io. |
public Future | submit(Runnable
the task to submit task)Implements io. |
public <T> Future | submit(Runnable
the task to submit task, T the result to return result)Implements io. |
public <T> Future | submit(Callable<T>
the task to submit task)Implements io. |
public Future | terminationFuture()
Implements io. Future which is notified when all EventExecutor s managed by this
EventExecutorGroup have been terminated.
|
private static EventExecutorGroup |