Interface ContextAwareEventLoop

All Superinterfaces:
AutoCloseable, ContextAwareExecutor, ContextAwareExecutorService, ContextAwareScheduledExecutorService, ContextHolder, io.netty.util.concurrent.EventExecutor, io.netty.util.concurrent.EventExecutorGroup, io.netty.channel.EventLoop, io.netty.channel.EventLoopGroup, Executor, ExecutorService, Iterable<io.netty.util.concurrent.EventExecutor>, io.netty.util.concurrent.OrderedEventExecutor, ScheduledExecutorService

public interface ContextAwareEventLoop extends io.netty.channel.EventLoop, ContextAwareScheduledExecutorService
A delegating EventLoop that sets the RequestContext before executing any submitted tasks.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the RequestContext that was specified when creating this ContextAwareEventLoop.
    of(RequestContext context, io.netty.channel.EventLoop eventLoop)
    Returns a new ContextAwareEventLoop that sets the specified RequestContext before executing any submitted tasks.
    io.netty.channel.EventLoop
    Returns the EventLoop that executes the submitted tasks without setting the RequestContext.

    Methods inherited from interface io.netty.util.concurrent.EventExecutor

    inEventLoop, inEventLoop, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, next

    Methods inherited from interface io.netty.util.concurrent.EventExecutorGroup

    isShuttingDown, iterator, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFuture

    Methods inherited from interface io.netty.channel.EventLoop

    parent

    Methods inherited from interface io.netty.channel.EventLoopGroup

    next, register, register, register

    Methods inherited from interface java.util.concurrent.Executor

    execute

    Methods inherited from interface java.util.concurrent.ExecutorService

    awaitTermination, close, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator