Interface IoHandlerFactory
public interface IoHandlerFactory
Factory for
IoHandler instances.-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanReturnstrueif it's supported that theThreadAwareExecutormight change itsThreadduring the life-time of theIoHandlerthat can be created vianewHandler(ThreadAwareExecutor).newHandler(ThreadAwareExecutor ioExecutor) Creates a newIoHandlerinstance.
-
Method Details
-
newHandler
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.
-