Uses of Interface
org.eclipse.jetty.websocket.api.Callback
Package
Description
Jetty WebSocket Common : Implementation [Internal Use Only]
-
Uses of Callback in org.eclipse.jetty.websocket.api
Modifier and TypeMethodDescriptionstatic Callback
Creates a callback from the given success and failure lambdas.Modifier and TypeMethodDescriptionvoid
Sends a websocket CLOSE frame, with status code and reason, notifying the given callback when the frame send is completed, either successfully or with a failure.default void
Session.Listener.onWebSocketBinary
(ByteBuffer payload, Callback callback) A WebSocket BINARY message has been received.default void
Session.Listener.onWebSocketFrame
(Frame frame, Callback callback) A WebSocket frame has been received.default void
Session.Listener.onWebSocketPartialBinary
(ByteBuffer payload, boolean last, Callback callback) A WebSocket BINARY (or associated CONTINUATION) frame has been received.void
Session.sendBinary
(ByteBuffer buffer, Callback callback) Initiates the asynchronous send of a BINARY message, notifying the given callback when the message send is completed, either successfully or with a failure.void
Session.sendPartialBinary
(ByteBuffer buffer, boolean last, Callback callback) Initiates the asynchronous send of a BINARY frame, possibly part of a larger binary message, notifying the given callback when the frame send is completed, either successfully or with a failure.void
Session.sendPartialText
(String text, boolean last, Callback callback) Initiates the asynchronous send of a TEXT frame, possibly part of a larger binary message, notifying the given callback when the frame send is completed, either successfully or with a failure.void
Session.sendPing
(ByteBuffer applicationData, Callback callback) Initiates the asynchronous send of a PING frame, notifying the given callback when the frame send is completed, either successfully or with a failure.void
Session.sendPong
(ByteBuffer applicationData, Callback callback) Initiates the asynchronous send of a PONG frame, notifying the given callback when the frame send is completed, either successfully or with a failure.void
Initiates the asynchronous send of a TEXT message, notifying the given callback when the message send is completed, either successfully or with a failure. -
Uses of Callback in org.eclipse.jetty.websocket.common
Modifier and TypeMethodDescriptionvoid
void
WebSocketSession.sendBinary
(ByteBuffer buffer, Callback callback) void
WebSocketSession.sendPartialBinary
(ByteBuffer buffer, boolean last, Callback callback) void
WebSocketSession.sendPartialText
(String text, boolean last, Callback callback) void
WebSocketSession.sendPing
(ByteBuffer applicationData, Callback callback) void
WebSocketSession.sendPong
(ByteBuffer applicationData, Callback callback) void