-
- All Superinterfaces:
EventExecutor,EventExecutorGroup,EventLoopGroup,Executor,FuturePromiseFactory,Iterable<EventExecutor>,OrderedEventExecutor
- All Known Implementing Classes:
SingleThreadEventLoop
public interface EventLoop extends OrderedEventExecutor, EventLoopGroup
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Future<Void>deregisterForIo(IoHandle handle)booleanisCompatible(Class<? extends IoHandle> handleType)Returnstrueif the given type is compatible with thisEventLoopGroupand so can be registered to the containedEventLoops,falseotherwise.default EventLoopnext()Returns a reference to itself.Future<Void>registerForIo(IoHandle handle)-
Methods inherited from interface io.netty5.util.concurrent.EventExecutor
execute, inEventLoop, inEventLoop, iterator, newFailedFuture, newPromise, newSucceededFuture, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, submit, submit, submit
-
Methods inherited from interface io.netty5.util.concurrent.EventExecutorGroup
awaitTermination, isShutdown, isShuttingDown, isTerminated, shutdownGracefully, shutdownGracefully, terminationFuture
-
Methods inherited from interface io.netty5.util.concurrent.FuturePromiseFactory
newSucceededFuture
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
next
default EventLoop next()
Description copied from interface:EventExecutorReturns a reference to itself.- Specified by:
nextin interfaceEventExecutor- Specified by:
nextin interfaceEventExecutorGroup- Specified by:
nextin interfaceEventLoopGroup
-
isCompatible
boolean isCompatible(Class<? extends IoHandle> handleType)
Description copied from interface:EventLoopGroupReturnstrueif the given type is compatible with thisEventLoopGroupand so can be registered to the containedEventLoops,falseotherwise.- Specified by:
isCompatiblein interfaceEventLoopGroup- Parameters:
handleType- the type of theIoHandle.- Returns:
- if compatible of not.
-
-