Interface MessageSink
- 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
-
Method Details
-
accept
Consume the frame payload to the message.- Parameters:
frame
- the frame, its payload (and fin state) to appendcallback
- the callback for how the frame was consumed
-
fail
Fail the message sink.
Release any resources and fail all stored callbacks as
accept(Frame, Callback)
will never be called again.- Parameters:
failure
- the failure that occurred.
-