Class AbstractDecodedMessageSink
java.lang.Object
org.eclipse.jetty.websocket.jakarta.common.messages.AbstractDecodedMessageSink
- All Implemented Interfaces:
MessageSink
- Direct Known Subclasses:
AbstractDecodedMessageSink.Basic
,AbstractDecodedMessageSink.Stream
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
AbstractDecodedMessageSink.Basic<T extends jakarta.websocket.Decoder>
static class
AbstractDecodedMessageSink.Stream<T extends jakarta.websocket.Decoder>
-
Constructor Summary
ConstructorDescriptionAbstractDecodedMessageSink
(CoreSession coreSession, MethodHandle methodHandle) -
Method Summary
-
Constructor Details
-
AbstractDecodedMessageSink
-
-
Method Details
-
accept
Description copied from interface:MessageSink
Consume the frame payload to the message.- Specified by:
accept
in interfaceMessageSink
- Parameters:
frame
- the frame, its payload (and fin state) to appendcallback
- the callback for how the frame was consumed
-
fail
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 interfaceMessageSink
- Parameters:
failure
- the failure that occurred.
-