Uses of Interface
org.eclipse.jetty.websocket.api.Callback
Packages that use Callback
Package
Description
Jetty WebSocket Common : Implementation [Internal Use Only]
-
Uses of Callback in org.eclipse.jetty.docs.programming
Methods in org.eclipse.jetty.docs.programming with parameters of type CallbackModifier and TypeMethodDescriptionvoidWebSocketDocs.AnnotatedEndPoint.onBinaryMessage(Session session, ByteBuffer payload, Callback callback) voidWebSocketDocs.PartialAnnotatedEndpoint.onBinaryMessage(Session session, ByteBuffer partialPayload, boolean fin, Callback callback) voidWebSocketDocs.ListenerEndPoint.onWebSocketBinary(ByteBuffer payload, Callback callback) voidWebSocketDocs.StreamingListenerEndpoint.onWebSocketPartialBinary(ByteBuffer payload, boolean fin, Callback callback) -
Uses of Callback in org.eclipse.jetty.websocket.api
Classes in org.eclipse.jetty.websocket.api that implement CallbackFields in org.eclipse.jetty.websocket.api declared as CallbackMethods in org.eclipse.jetty.websocket.api that return CallbackModifier and TypeMethodDescriptionstatic CallbackCreates a callback from the given success and failure lambdas.Methods in org.eclipse.jetty.websocket.api with parameters of type CallbackModifier and TypeMethodDescriptionvoidSends 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 voidSession.Listener.onWebSocketBinary(ByteBuffer payload, Callback callback) A WebSocket BINARY message has been received.default voidSession.Listener.onWebSocketFrame(Frame frame, Callback callback) A WebSocket frame has been received.default voidSession.Listener.onWebSocketPartialBinary(ByteBuffer payload, boolean last, Callback callback) A WebSocket BINARY (or associated CONTINUATION) frame has been received.voidSession.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.voidSession.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.voidSession.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.voidSession.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.voidSession.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.voidInitiates 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
Methods in org.eclipse.jetty.websocket.common with parameters of type CallbackModifier and TypeMethodDescriptionvoidvoidWebSocketSession.sendBinary(ByteBuffer buffer, Callback callback) voidWebSocketSession.sendPartialBinary(ByteBuffer buffer, boolean last, Callback callback) voidWebSocketSession.sendPartialText(String text, boolean last, Callback callback) voidWebSocketSession.sendPing(ByteBuffer applicationData, Callback callback) voidWebSocketSession.sendPong(ByteBuffer applicationData, Callback callback) void