-
- All Superinterfaces:
io.netty5.util.concurrent.EventExecutor,io.netty5.util.concurrent.EventExecutorGroup,EventLoopGroup,Executor,io.netty5.util.concurrent.FuturePromiseFactory,Iterable<io.netty5.util.concurrent.EventExecutor>,io.netty5.util.concurrent.OrderedEventExecutor
- All Known Implementing Classes:
SingleThreadEventLoop
public interface EventLoop extends io.netty5.util.concurrent.OrderedEventExecutor, EventLoopGroup
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description io.netty5.util.concurrent.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()Return the nextEventLoopto useio.netty5.util.concurrent.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 java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
next
default EventLoop next()
Description copied from interface:EventLoopGroupReturn the nextEventLoopto use- Specified by:
nextin interfaceio.netty5.util.concurrent.EventExecutor- Specified by:
nextin interfaceio.netty5.util.concurrent.EventExecutorGroup- Specified by:
nextin interfaceEventLoopGroup
-
registerForIo
io.netty5.util.concurrent.Future<Void> registerForIo(IoHandle handle)
- Parameters:
handle- theIoHandleto register.- Returns:
- the
Futurethat is notified once the operations completes.
-
deregisterForIo
io.netty5.util.concurrent.Future<Void> deregisterForIo(IoHandle handle)
- Parameters:
channel- theIoHandleto deregister.- Returns:
- the
Futurethat is notified once the operations completes.
-
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.
-
-