BlockSender (RabbIT/4)
Date: 2009-12-20

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## rabbit.httpio
Class BlockSender

    java.lang.Object
      rabbit.httpio.BaseSocketHandler
          rabbit.httpio.BlockSender

All Implemented Interfaces:
  SocketChannelHandler, WriteHandler

    public class BlockSender

extends BaseSocketHandler
implements WriteHandler

A handler that writes data blocks.

Author:
  Robert Olofsson

Constructor Summary
`BlockSender(SocketChannel channel, NioHandler nioHandler, TrafficLogger tl, BufferHandle bufHandle, boolean chunking, BlockSentListener sender)`

Method Summary
`void` | `closed()` Does nothing by default
`String` | `getDescription()` Get a string description.
`void` | `timeout()` Does nothing by default
`void` | `write()` The channel is ready for read.

Methods inherited from class rabbit.httpio.BaseSocketHandler
`closeDown, getBuffer, getBufferHandle, getChannel, getLogger, getTimeout, 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 rabbit.nio.SocketChannelHandler
`getTimeout, useSeparateThread`

Constructor Detail

### BlockSender

    public BlockSender(SocketChannel channel,
                       NioHandler nioHandler,
                       TrafficLogger tl,
                       BufferHandle bufHandle,
                       boolean chunking,
                       BlockSentListener sender)
                throws IOException

Throws:
  `IOException`

Method Detail

### getDescription

    public String getDescription()

  Description copied from interface: `SocketChannelHandler`
  Get a string description.

  Specified by:
    `getDescription` in interface `SocketChannelHandler`
  Overrides:
    `getDescription` in class `BaseSocketHandler`

### timeout

    public void timeout()

  Description copied from class: `BaseSocketHandler`
  Does nothing by default

  Specified by:
    `timeout` in interface `SocketChannelHandler`
  Overrides:
    `timeout` in class `BaseSocketHandler`

### closed

    public void closed()

  Description copied from class: `BaseSocketHandler`
  Does nothing by default

  Specified by:
    `closed` in interface `SocketChannelHandler`
  Overrides:
    `closed` in class `BaseSocketHandler`

### write

    public void write()

  Description copied from interface: `WriteHandler`
  The channel is ready for read.

  Specified by:
    `write` in interface `WriteHandler`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD