Top Description Methods
org.eclipse.jetty.websocket.api.annotations

public @Interface WebSocket

extends Annotation
Annotations
@Documented
@Retention:RUNTIME
@Inherited
@Target:TYPE
Imports
java.lang.annotation.Documented, .ElementType, .Inherited, .Retention, .RetentionPolicy, .Target, org.eclipse.jetty.websocket.api.Session

Annotation for classes to be WebSocket endpoints.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

whether demand for WebSocket frames is automatic
autoDemand
()

Returns whether demand for WebSocket frames is automatically performed upon successful return from methods annotated with OnWebSocketOpen, OnWebSocketFrame and OnWebSocketMessage.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

autoDemandback to summary
public boolean autoDemand()

Returns whether demand for WebSocket frames is automatically performed upon successful return from methods annotated with OnWebSocketOpen, OnWebSocketFrame and OnWebSocketMessage.

If the demand is not automatic, then Session#demand() must be explicitly invoked to receive more WebSocket frames (both control and data frames, including CLOSE frames).

Returns:boolean

whether demand for WebSocket frames is automatic