Package io.quarkus.websockets.next
Annotation Interface OnPongMessage
@Retention(RUNTIME)
@Target(METHOD)
@Experimental("This API is experimental and may change in the future")
public @interface OnPongMessage
WebSocket and WebSocketClient endpoint methods annotated with this annotation consume pong messages. An
endpoint may declare at most one method annotated with this annotation.
Execution model
- Methods annotated with
RunOnVirtualThreadare considered blocking and should be executed on a virtual thread. - Methods annotated with
Blockingare considered blocking and should be executed on a worker thread. - Methods annotated with
NonBlockingare considered non-blocking and should be executed on an event loop thread.
- Methods returning
voidare considered blocking and should be executed on a worker thread. - Methods returning
io.smallrye.mutiny.Uni<Void>are considered non-blocking and should be executed on an event loop thread.
Method parameters
The method must accept exactly one pong message parameter represented as aBuffer. The method
may also accept the following parameters:
WebSocketConnection/WebSocketClientConnection; depending on the endpoint typeHandshakeRequestStringparameters annotated withPathParam