Module org.xbib.rpm

Interface ChannelWrapper.Consumer<T>

Type Parameters:
T - the consumer type
Enclosing class:
ChannelWrapper

public static interface ChannelWrapper.Consumer<T>
Interface describing an object that consumes data from a byte buffer.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Consume some input from the given buffer.
    Complete and optionally return a value to the holder of the key.
  • Method Details

    • consume

      void consume(ByteBuffer buffer)
      Consume some input from the given buffer.
      Parameters:
      buffer - the buffer to consume
    • finish

      T finish()
      Complete and optionally return a value to the holder of the key.
      Returns:
      reference to the object