Uses of Interface
org.eclipse.jetty.websocket.api.Callback

Packages that use Callback
Package
Description
 
  • Uses of Callback in org.eclipse.jetty.websocket.api

    Classes in org.eclipse.jetty.websocket.api that implement Callback
    Modifier and Type
    Class
    Description
    static class 
     
    Modifier and Type
    Field
    Description
    static final Callback
    Callback.NOOP
     
    Modifier and Type
    Method
    Description
    static Callback
    Callback.from(Runnable success, Consumer<Throwable> failure)
    Creates a callback from the given success and failure lambdas.
    Methods in org.eclipse.jetty.websocket.api with parameters of type Callback
    Modifier and Type
    Method
    Description
    void
    Session.close(int statusCode, String reason, Callback callback)
    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
    Session.sendText(String text, Callback callback)
    Initiates the asynchronous send of a TEXT message, notifying the given callback when the message send is completed, either successfully or with a failure.