Package io.netty.channel
Interface IoHandlerFactory
-
public interface IoHandlerFactory
Factory forIoHandler
instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
isChangingThreadSupported()
Returnstrue
if it's supported that theThreadAwareExecutor
might change itsThread
during the life-time of theIoHandler
that can be created vianewHandler(ThreadAwareExecutor)
.IoHandler
newHandler(ThreadAwareExecutor ioExecutor)
Creates a newIoHandler
instance.
-
-
-
Method Detail
-
newHandler
IoHandler newHandler(ThreadAwareExecutor ioExecutor)
Creates a newIoHandler
instance.- Parameters:
ioExecutor
- theThreadAwareExecutor
for theIoHandler
.- Returns:
- a new
IoHandler
instance.
-
isChangingThreadSupported
default boolean isChangingThreadSupported()
Returnstrue
if it's supported that theThreadAwareExecutor
might change itsThread
during the life-time of theIoHandler
that can be created vianewHandler(ThreadAwareExecutor)
. That said even if changing theThread
is supported it must be guaranteed that the access rules specified byIoHandler
are not violated.- Returns:
true
if changing is supported,false
otherwise.
-
-