Package com.linecorp.armeria.common
Interface ContextAwareEventLoop
- All Superinterfaces:
ContextAwareScheduledExecutorService,ContextHolder,EventExecutor,EventExecutorGroup,EventLoop,EventLoopGroup,Executor,ExecutorService,Iterable<EventExecutor>,OrderedEventExecutor,ScheduledExecutorService
A delegating
EventLoop that sets the RequestContext before executing any submitted tasks.-
Method Summary
Modifier and TypeMethodDescriptioncontext()Returns theRequestContextthat is specified when creating thisContextAwareEventLoop.static ContextAwareEventLoopof(RequestContext context, EventLoop eventLoop)Returns a newContextAwareEventLoopthat sets the specifiedRequestContextbefore executing any submitted tasks.Returns theEventLoopthat is executing submitted tasks without setting theRequestContext.Methods inherited from interface io.netty.util.concurrent.EventExecutor
inEventLoop, inEventLoop, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, nextMethods inherited from interface io.netty.util.concurrent.EventExecutorGroup
isShuttingDown, iterator, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFutureMethods inherited from interface io.netty.channel.EventLoopGroup
next, register, register, registerMethods inherited from interface java.util.concurrent.ExecutorService
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
of
Returns a newContextAwareEventLoopthat sets the specifiedRequestContextbefore executing any submitted tasks. -
withoutContext
EventLoop withoutContext()Returns theEventLoopthat is executing submitted tasks without setting theRequestContext.- Specified by:
withoutContextin interfaceContextAwareScheduledExecutorService
-
context
RequestContext context()Returns theRequestContextthat is specified when creating thisContextAwareEventLoop.- Specified by:
contextin interfaceContextAwareScheduledExecutorService- Specified by:
contextin interfaceContextHolder
-