Class AbstractNioChannelSink
java.lang.Object
org.jboss.netty.channel.AbstractChannelSink
org.jboss.netty.channel.socket.nio.AbstractNioChannelSink
- All Implemented Interfaces:
ChannelSink
- Direct Known Subclasses:
NioClientSocketPipelineSink, NioDatagramPipelineSink, NioServerSocketPipelineSink
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(ChannelPipeline pipeline, Runnable task) This implementation just directly callRunnable.run().protected booleanisFireExceptionCaughtLater(ChannelEvent event, Throwable actualCause) Returnstrueif and only if the specifiedactualCause, which was raised while handling the specifiedevent, must trigger anexceptionCaught()event in an I/O thread.Methods inherited from class AbstractChannelSink
exceptionCaughtMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ChannelSink
eventSunk
-
Constructor Details
-
AbstractNioChannelSink
public AbstractNioChannelSink()
-
-
Method Details
-
execute
Description copied from class:AbstractChannelSinkThis implementation just directly callRunnable.run(). Sub-classes should override this if they can handle it in a better way- Specified by:
executein interfaceChannelSink- Overrides:
executein classAbstractChannelSink
-
isFireExceptionCaughtLater
Description copied from class:AbstractChannelSinkReturnstrueif and only if the specifiedactualCause, which was raised while handling the specifiedevent, must trigger anexceptionCaught()event in an I/O thread.- Overrides:
isFireExceptionCaughtLaterin classAbstractChannelSink- Parameters:
event- the event which raised exceptionactualCause- the raised exception
-