Interface OrderedEventExecutor
- All Superinterfaces:
EventExecutor, EventExecutorGroup, Executor, ExecutorService, Iterable<EventExecutor>, ScheduledExecutorService, ThreadAwareExecutor
- All Known Subinterfaces:
EventLoop, IoEventLoop
- All Known Implementing Classes:
AbstractEventLoop, DefaultEventExecutor, DefaultEventLoop, EpollEventLoop, GlobalEventExecutor, ManualIoEventLoop, NioEventLoop, SingleThreadEventExecutor, SingleThreadEventLoop, SingleThreadIoEventLoop, ThreadPerChannelEventLoop
Marker interface for
EventExecutors that will process all submitted tasks in an ordered / serial fashion.-
Method Summary
Methods inherited from interface EventExecutor
inEventLoop, inEventLoop, isExecutorThread, isSuspended, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, parent, trySuspendModifier and TypeMethodDescriptiondefault booleanCallsEventExecutor.inEventLoop(Thread)withThread.currentThread()as argumentbooleaninEventLoop(Thread thread) default booleanisExecutorThread(Thread thread) default booleanReturnstrueif theEventExecutoris considered suspended.default <V> Future<V> newFailedFuture(Throwable cause) Create a newFuturewhich is marked as failed already.default <V> ProgressivePromise<V> Create a newProgressivePromise.default <V> Promise<V> Return a newPromise.default <V> Future<V> newSucceededFuture(V result) Create a newFuturewhich is marked as succeeded already.parent()Return theEventExecutorGroupwhich is the parent of thisEventExecutor,default booleanTry to suspend thisEventExecutorand returntrueif suspension was successful.Methods inherited from interface EventExecutorGroup
isShuttingDown, iterator, next, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFuture, tickerModifier and TypeMethodDescriptionbooleanReturnstrueif and only if allEventExecutors managed by thisEventExecutorGroupare being shut down gracefully or was shut down.iterator()next()Returns one of theEventExecutors managed by thisEventExecutorGroup.<V> ScheduledFuture<V> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) voidshutdown()Deprecated.Future<?> Shortcut method forEventExecutorGroup.shutdownGracefully(long, long, TimeUnit)with sensible default values.Future<?> shutdownGracefully(long quietPeriod, long timeout, TimeUnit unit) Signals this executor that the caller wants the executor to be shut down.Deprecated.Future<?> <T> Future<T> <T> Future<T> Future<?> Returns theFuturewhich is notified when allEventExecutors managed by thisEventExecutorGrouphave been terminated.default Tickerticker()The ticker for this executor.Methods inherited from interface ExecutorService
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedMethods inherited from interface Iterable
forEach, spliterator
EventExecutorGroup.shutdownGracefully(long, long, TimeUnit)orEventExecutorGroup.shutdownGracefully()instead.