|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrabbit.httpio.BaseSocketHandler
rabbit.httpio.BlockSender
public class BlockSender
A handler that writes data blocks.
| Constructor Summary | |
|---|---|
BlockSender(java.nio.channels.SocketChannel channel,
NioHandler nioHandler,
TrafficLogger tl,
BufferHandle bufHandle,
boolean chunking,
BlockSentListener sender)
Create a new BlockSender that will write data to the given channel |
|
| Method Summary | |
|---|---|
void |
closed()
Does nothing by default |
java.lang.String |
getDescription()
|
void |
timeout()
Does nothing by default |
void |
write()
|
| Methods inherited from class rabbit.httpio.BaseSocketHandler |
|---|
closeDown, getBuffer, getBufferHandle, getChannel, getLargeBuffer, getLogger, getTimeout, isUsingSmallBuffer, releaseBuffer, useSeparateThread, waitForRead, waitForWrite |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.khelekore.rnio.SocketChannelHandler |
|---|
getTimeout, useSeparateThread |
| Constructor Detail |
|---|
public BlockSender(java.nio.channels.SocketChannel channel,
NioHandler nioHandler,
TrafficLogger tl,
BufferHandle bufHandle,
boolean chunking,
BlockSentListener sender)
channel - the SocketChannel to write the data tonioHandler - the NioHandler to use to wait for write readytl - the traffic statistics gathererbufHandle - the data to writechunking - if true chunk the data outsender - the listener that will be notified when the data has
been handled.| Method Detail |
|---|
public java.lang.String getDescription()
getDescription in interface SocketChannelHandlergetDescription in class BaseSocketHandlerpublic void timeout()
BaseSocketHandler
timeout in interface SocketChannelHandlertimeout in class BaseSocketHandlerpublic void closed()
BaseSocketHandler
closed in interface SocketChannelHandlerclosed in class BaseSocketHandlerpublic void write()
write in interface WriteHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||