Class ByteArrayMessageSink

java.lang.Object
org.eclipse.jetty.websocket.core.internal.messages.AbstractMessageSink
org.eclipse.jetty.websocket.core.internal.messages.ByteArrayMessageSink
All Implemented Interfaces:
MessageSink

public class ByteArrayMessageSink extends AbstractMessageSink
  • Constructor Details

  • Method Details

    • accept

      public void accept(Frame frame, Callback callback)
      Description copied from interface: MessageSink
      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
    • fail

      public void fail(Throwable failure)
      Description copied from interface: MessageSink

      Fail the message sink.

      Release any resources and fail all stored callbacks as MessageSink.accept(Frame, Callback) will never be called again.

      Specified by:
      fail in interface MessageSink
      Overrides:
      fail in class AbstractMessageSink
      Parameters:
      failure - the failure that occurred.