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
public abstract class AbstractNioChannelSink extends AbstractChannelSink
-
-
Constructor Summary
Constructors Constructor Description AbstractNioChannelSink()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelFutureexecute(ChannelPipeline pipeline, java.lang.Runnable task)This implementation just directly callRunnable.run().protected booleanisFireExceptionCaughtLater(ChannelEvent event, java.lang.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 org.jboss.netty.channel.AbstractChannelSink
exceptionCaught
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.netty.channel.ChannelSink
eventSunk
-
-
-
-
Method Detail
-
execute
public ChannelFuture execute(ChannelPipeline pipeline, java.lang.Runnable task)
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
protected boolean isFireExceptionCaughtLater(ChannelEvent event, java.lang.Throwable actualCause)
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
-
-