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 boolean
isCompatible(java.lang.Class<? extends IoHandle> handleType)
Returnstrue
if the given type is compatible with thisIoEventLoopGroup
and so can be registered to the containedIoEventLoop
s,false
otherwise.boolean
isIoType(java.lang.Class<? extends IoHandler> handlerType)
default IoEventLoop
next()
Returns one of theEventExecutor
s 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
-
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:EventExecutorGroup
Returns one of theEventExecutor
s managed by thisEventExecutorGroup
.- Specified by:
next
in interfaceEventExecutorGroup
- Specified by:
next
in interfaceEventLoopGroup
- Specified by:
next
in interfaceIoEventLoopGroup
-
register
Future<IoRegistration> register(IoHandle handle)
- Specified by:
register
in interfaceIoEventLoopGroup
- Parameters:
handle
- theIoHandle
to register.- Returns:
- the
Future
that is notified once the operations completes.
-
isCompatible
boolean isCompatible(java.lang.Class<? extends IoHandle> handleType)
Description copied from interface:IoEventLoopGroup
Returnstrue
if the given type is compatible with thisIoEventLoopGroup
and so can be registered to the containedIoEventLoop
s,false
otherwise.- Specified by:
isCompatible
in 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:
isIoType
in interfaceIoEventLoopGroup
- Parameters:
handlerType
- the type of theIoHandler
.- Returns:
- if used or not.
-
-