Class AbstractDecodedMessageSink
java.lang.Object
org.eclipse.jetty.ee10.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
Consumes the WebSocket frame, possibly asynchronously when this method has returned.
The callback argument must be completed when the frame payload is consumed.
The demand for more frames must be explicitly invoked, or arranged to be invoked asynchronously, by the implementation of this method, by calling
CoreSession.demand()
.- Specified by:
accept
in interfaceMessageSink
- Parameters:
frame
- the frame to consumecallback
- the callback to complete when the frame is consumed
-
fail
Description copied from interface:MessageSink
Fails this
MessageSink
with the given cause.- Specified by:
fail
in interfaceMessageSink
- Parameters:
failure
- the cause of the failure
-