Package io.netty.channel
Interface IoEventLoop
-
- All Superinterfaces:
EventExecutor,EventExecutorGroup,EventLoop,EventLoopGroup,java.util.concurrent.Executor,java.util.concurrent.ExecutorService,IoEventLoopGroup,java.lang.Iterable<EventExecutor>,OrderedEventExecutor,java.util.concurrent.ScheduledExecutorService,ThreadAwareExecutor
- All Known Implementing Classes:
EpollEventLoop,ManualIoEventLoop,NioEventLoop,SingleThreadIoEventLoop
public interface IoEventLoop extends EventLoop, IoEventLoopGroup
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanisCompatible(java.lang.Class<? extends IoHandle> handleType)Returnstrueif the given type is compatible with thisIoEventLoopGroupand so can be registered to the containedIoEventLoops,falseotherwise.booleanisIoType(java.lang.Class<? extends IoHandler> handlerType)default IoEventLoopnext()Returns one of theEventExecutors managed by thisEventExecutorGroup.Future<IoRegistration>register(IoHandle handle)-
Methods inherited from interface io.netty.util.concurrent.EventExecutor
inEventLoop, inEventLoop, isExecutorThread, isSuspended, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, trySuspend
-
Methods inherited from interface io.netty.util.concurrent.EventExecutorGroup
isShuttingDown, iterator, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFuture, ticker
-
Methods inherited from interface io.netty.channel.EventLoopGroup
register
-
Methods inherited from interface java.util.concurrent.ExecutorService
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated
-
Methods inherited from interface io.netty.channel.IoEventLoopGroup
register, register
-
-
-
-
Method Detail
-
next
default IoEventLoop next()
Description copied from interface:EventExecutorGroupReturns one of theEventExecutors managed by thisEventExecutorGroup.- Specified by:
nextin interfaceEventExecutorGroup- Specified by:
nextin interfaceEventLoopGroup- Specified by:
nextin interfaceIoEventLoopGroup
-
register
Future<IoRegistration> register(IoHandle handle)
- Specified by:
registerin interfaceIoEventLoopGroup- Parameters:
handle- theIoHandleto register.- Returns:
- the
Futurethat is notified once the operations completes.
-
isCompatible
boolean isCompatible(java.lang.Class<? extends IoHandle> handleType)
Description copied from interface:IoEventLoopGroupReturnstrueif the given type is compatible with thisIoEventLoopGroupand so can be registered to the containedIoEventLoops,falseotherwise.- Specified by:
isCompatiblein interfaceIoEventLoopGroup- Parameters:
handleType- the type of theIoHandle.- Returns:
- if compatible of not.
-
isIoType
boolean isIoType(java.lang.Class<? extends IoHandler> handlerType)
Description copied from interface:IoEventLoopGroup- Specified by:
isIoTypein interfaceIoEventLoopGroup- Parameters:
handlerType- the type of theIoHandler.- Returns:
- if used or not.
-
-