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
  • 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 interface io.netty.util.concurrent.EventExecutorGroup
      Specified by:
      shutdown in interface ExecutorService
      Specified by:
      shutdown in class io.netty.util.concurrent.AbstractEventExecutorGroup
    • isShutdown

      public boolean isShutdown()
    • isTerminated

      public boolean isTerminated()
    • awaitTermination

      public boolean awaitTermination(long timeout, @Nonnull TimeUnit unit) throws InterruptedException
      Throws:
      InterruptedException
    • next

      public io.netty.util.concurrent.EventExecutor next()
    • iterator

      @Nonnull public Iterator<io.netty.util.concurrent.EventExecutor> iterator()
    • onSubmit

      protected void onSubmit(InstrumentibleEventExecutor.Completion completion)
      Invoked when the task is scheduled for immediate execution
      Parameters:
      completion -
    • onSchedule

      protected void onSchedule(InstrumentibleEventExecutor.Completion completion)
      Invoked when the task is scheduled for later execution.
      Parameters:
      completion -
    • onExec

      protected void onExec(InstrumentibleEventExecutor.Completion completion)
      Invoked on the executing thread before execution of the task
      Parameters:
      completion -
    • onComplete

      protected void onComplete(InstrumentibleEventExecutor.Completion completion, boolean isSuccess)
      Invoked after completion of the task
      Parameters:
      completion -
      isSuccess -
    • newCompletion

      protected InstrumentibleEventExecutor.Completion newCompletion()