All Known Implementing Classes:
AbstractDecodedMessageSink, AbstractDecodedMessageSink.Basic, AbstractDecodedMessageSink.Stream, AbstractMessageSink, ByteArrayMessageSink, ByteBufferMessageSink, DecodedBinaryMessageSink, DecodedBinaryStreamMessageSink, DecodedTextMessageSink, DecodedTextStreamMessageSink, DispatchedMessageSink, InputStreamMessageSink, MessageInputStream, MessageReader, PartialByteArrayMessageSink, PartialByteBufferMessageSink, PartialStringMessageSink, ReaderMessageSink, StringMessageSink

public interface MessageSink
Sink consumer for messages (used for multiple frames with continuations, and also to allow for streaming APIs)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(Frame frame, Callback callback)
    Consume the frame payload to the message.
  • Method Details

    • accept

      void accept(Frame frame, Callback callback)
      Consume the frame payload to the message.
      Parameters:
      frame - the frame, its payload (and fin state) to append
      callback - the callback for how the frame was consumed