Package io.netty.channel
Interface IoHandlerFactory
-
public interface IoHandlerFactoryFactory forIoHandlerinstances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanisChangingThreadSupported()Returnstrueif it's supported that theThreadAwareExecutormight change itsThreadduring the life-time of theIoHandlerthat can be created vianewHandler(ThreadAwareExecutor).IoHandlernewHandler(ThreadAwareExecutor ioExecutor)Creates a newIoHandlerinstance.
-
-
-
Method Detail
-
newHandler
IoHandler newHandler(ThreadAwareExecutor ioExecutor)
Creates a newIoHandlerinstance.- Parameters:
ioExecutor- theThreadAwareExecutorfor theIoHandler.- Returns:
- a new
IoHandlerinstance.
-
isChangingThreadSupported
default boolean isChangingThreadSupported()
Returnstrueif it's supported that theThreadAwareExecutormight change itsThreadduring the life-time of theIoHandlerthat can be created vianewHandler(ThreadAwareExecutor). That said even if changing theThreadis supported it must be guaranteed that the access rules specified byIoHandlerare not violated.- Returns:
trueif changing is supported,falseotherwise.
-
-