Interface ByteEncoder.Transport

Enclosing interface:
ByteEncoder

public static interface ByteEncoder.Transport
Define the object that will be called after an event has been transformed into a binary buffer.
  • Method Summary

    Modifier and Type Method Description
    void send​(ByteBuffer buffer)
    Called by the encoder once an event has been encoded.
  • Method Details

    • send

      void send​(ByteBuffer buffer)
      Called by the encoder once an event has been encoded. The buffer's position and limit should be correctly set so the Transport just has to read it.
      Parameters:
      buffer - buffer that has to be transported