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

## things.thinger.io.conduits
Interface PushDrain

All Known Implementing Classes:
  KernelBasic_WriterLogger, LocalCommandService, ThingService

    public interface PushDrain

A conduit push drain interface. You will register your own implementation with this. It will run within the Conduit's thread context, so make sure it is thread safe. You never know when it will be called.

Implement the postListener method.

Version:
  1.0

  Version History

      EPG - Adapted from autohit - 29 JUN 05

Author:
  Erich P. Gatejen

Method Summary
`void` | `init(ConduitID yourId)` Initialize the PushDrain.
`Receipt` | `postListener(Data n)` Listen for a post.

Method Detail

### init

    void init(ConduitID yourId)
              throws SystemException

  Initialize the PushDrain. This will be called by it's controller. An subsequent calls may result in a PANIC SystemException. Don't do it!

  Parameters:
    `yourId` - The ConduitID for this PushDrain.
  Throws:
    `SystemException`
  See Also:
    `ConduitID`

### postListener

    Receipt postListener(Data n)
                         throws SystemException

  Listen for a post. Consumers should implement this.

  Parameters:
    `n` - The data to post.
  Returns:
    a receipt
  Throws:
    `SystemException`

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

Things.