SocketChannelHandler (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.nio
Interface SocketChannelHandler

All Known Subinterfaces:
  AcceptHandler, ConnectHandler, ReadHandler, WriteHandler

All Known Implementing Classes:
  Acceptor, BaseSocketHandler, BlockSender, HttpHeaderReader, WebConnectionResourceSource

    public interface SocketChannelHandler

A handler for socket operations.

Method Summary
`void` | `closed()` Signal that the channel has been closed.
`String` | `getDescription()` Get a string description.
`Long` | `getTimeout()` Get the timeout time in millis.
`void` | `timeout()` Signal that the select operation timed out.
`boolean` | `useSeparateThread()` Check if this handler needs to run in a separate thread.

Method Detail

### closed

    void closed()

  Signal that the channel has been closed.

### timeout

    void timeout()

  Signal that the select operation timed out.

### useSeparateThread

    boolean useSeparateThread()

  Check if this handler needs to run in a separate thread.

### getDescription

    String getDescription()

  Get a string description.

### getTimeout

    Long getTimeout()

  Get the timeout time in millis.

  Returns:
    the time when this operation times out, null if no timeout is set.

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