Package com.linkedin.alpini.netty4.misc
Class InstrumentibleEventExecutor
java.lang.Object
io.netty.util.concurrent.AbstractEventExecutorGroup
com.linkedin.alpini.netty4.misc.InstrumentibleEventExecutor
- All Implemented Interfaces:
io.netty.util.concurrent.EventExecutorGroup
,Iterable<io.netty.util.concurrent.EventExecutor>
,Executor
,ExecutorService
,ScheduledExecutorService
public class InstrumentibleEventExecutor
extends io.netty.util.concurrent.AbstractEventExecutorGroup
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionInstrumentibleEventExecutor
(io.netty.util.concurrent.EventExecutorGroup eventExecutorGroup) -
Method Summary
Modifier and TypeMethodDescriptionboolean
awaitTermination
(long timeout, TimeUnit unit) boolean
boolean
boolean
Iterator<io.netty.util.concurrent.EventExecutor>
iterator()
protected InstrumentibleEventExecutor.Completion
io.netty.util.concurrent.EventExecutor
next()
protected void
onComplete
(InstrumentibleEventExecutor.Completion completion, boolean isSuccess) Invoked after completion of the taskprotected void
onExec
(InstrumentibleEventExecutor.Completion completion) Invoked on the executing thread before execution of the taskprotected void
onSchedule
(InstrumentibleEventExecutor.Completion completion) Invoked when the task is scheduled for later execution.protected void
onSubmit
(InstrumentibleEventExecutor.Completion completion) Invoked when the task is scheduled for immediate executionvoid
shutdown()
io.netty.util.concurrent.Future<?>
shutdownGracefully
(long quietPeriod, long timeout, TimeUnit unit) io.netty.util.concurrent.Future<?>
Methods inherited from class io.netty.util.concurrent.AbstractEventExecutorGroup
execute, invokeAll, invokeAll, invokeAny, invokeAny, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submit
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
InstrumentibleEventExecutor
public InstrumentibleEventExecutor(io.netty.util.concurrent.EventExecutorGroup eventExecutorGroup)
-
-
Method Details
-
isShuttingDown
public boolean isShuttingDown() -
shutdownGracefully
public io.netty.util.concurrent.Future<?> shutdownGracefully(long quietPeriod, long timeout, TimeUnit unit) -
terminationFuture
public io.netty.util.concurrent.Future<?> terminationFuture() -
shutdown
public void shutdown()- Specified by:
shutdown
in interfaceio.netty.util.concurrent.EventExecutorGroup
- Specified by:
shutdown
in interfaceExecutorService
- Specified by:
shutdown
in classio.netty.util.concurrent.AbstractEventExecutorGroup
-
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
awaitTermination
- Throws:
InterruptedException
-
next
public io.netty.util.concurrent.EventExecutor next() -
iterator
-
onSubmit
Invoked when the task is scheduled for immediate execution- Parameters:
completion
-
-
onSchedule
Invoked when the task is scheduled for later execution.- Parameters:
completion
-
-
onExec
Invoked on the executing thread before execution of the task- Parameters:
completion
-
-
onComplete
Invoked after completion of the task- Parameters:
completion
-isSuccess
-
-
newCompletion
-