Class NioWorker
java.lang.Object
org.jboss.netty.channel.socket.nio.AbstractNioSelector
org.jboss.netty.channel.socket.nio.AbstractNioWorker
org.jboss.netty.channel.socket.nio.NioWorker
- All Implemented Interfaces:
Runnable,NioSelector,Worker
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.jboss.netty.channel.socket.nio.AbstractNioWorker
sendBufferPoolFields inherited from class org.jboss.netty.channel.socket.nio.AbstractNioSelector
logger, selector, startupLatch, thread, wakenUp -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RunnablecreateRegisterTask(Channel channel, ChannelFuture future) protected booleanread(SelectionKey k) Read is called when a Selector has been notified that the underlying channel was something to be read.voidrun()protected booleanscheduleWriteIfNecessary(AbstractNioChannel<?> channel) Methods inherited from class org.jboss.netty.channel.socket.nio.AbstractNioWorker
cleanUpWriteBuffer, clearOpWrite, close, close, executeInIoThread, executeInIoThread, isIoThread, newThreadRenamingRunnable, process, setInterestOps, setOpWrite, write0, writeFromSelectorLoop, writeFromTaskLoop, writeFromUserCodeMethods inherited from class org.jboss.netty.channel.socket.nio.AbstractNioSelector
cleanUpCancelledKeys, increaseCancelledKeys, isIoThread, rebuildSelector, register, registerTask, select, shutdown
-
Field Details
-
recvBufferPool
-
-
Constructor Details
-
NioWorker
-
NioWorker
-
-
Method Details
-
read
Description copied from class:AbstractNioWorkerRead is called when a Selector has been notified that the underlying channel was something to be read. The channel would previously have registered its interest in read operations.- Specified by:
readin classAbstractNioWorker- Parameters:
k- The selection key which contains the Selector registration information.
-
scheduleWriteIfNecessary
- Specified by:
scheduleWriteIfNecessaryin classAbstractNioWorker
-
createRegisterTask
- Specified by:
createRegisterTaskin classAbstractNioSelector
-
run
public void run()- Specified by:
runin interfaceRunnable- Overrides:
runin classAbstractNioWorker
-