rabbit.proxy
Class BlockSender
java.lang.Object
rabbit.proxy.BaseSocketHandler
rabbit.proxy.BlockSender
- All Implemented Interfaces:
- Runnable, SocketHandler
public class BlockSender
- extends BaseSocketHandler
A handler that writes data blocks.
- Author:
- Robert Olofsson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlockSender
public BlockSender(SocketChannel channel,
Selector selector,
Logger logger,
TrafficLogger tl,
ByteBuffer buffer,
boolean chunking,
BlockSentListener sender)
throws IOException
- Throws:
IOException
getSocketOperations
protected int getSocketOperations()
- Specified by:
getSocketOperations
in class BaseSocketHandler
timeout
public void timeout()
- Description copied from interface:
SocketHandler
- Signal that the select operation timed out.
run
public void run()