-
- 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)
boolean
isCompatible(Class<? extends IoHandle> handleType)
Returnstrue
if the given type is compatible with thisEventLoopGroup
and so can be registered to the containedEventLoop
s,false
otherwise.default EventLoop
next()
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:EventExecutor
Returns a reference to itself.- Specified by:
next
in interfaceEventExecutor
- Specified by:
next
in interfaceEventExecutorGroup
- Specified by:
next
in interfaceEventLoopGroup
-
isCompatible
boolean isCompatible(Class<? extends IoHandle> handleType)
Description copied from interface:EventLoopGroup
Returnstrue
if the given type is compatible with thisEventLoopGroup
and so can be registered to the containedEventLoop
s,false
otherwise.- Specified by:
isCompatible
in interfaceEventLoopGroup
- Parameters:
handleType
- the type of theIoHandle
.- Returns:
- if compatible of not.
-
-