| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class | |
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| private ByteBuffer | |
| private final Executor | |
| private static final Logger | |
| private final Demand | |
| private final MinimalFuture | |
| private final AtomicReference | |
| private volatile boolean | |
| private boolean | |
| private final AtomicReference | |
| private final WebSocket. | |
| private final AtomicBoolean | |
| private final AtomicBoolean | |
| private final AtomicBoolean | |
| private String | |
| private final AtomicLong | |
| private final SequentialScheduler | |
| private final AtomicLong | |
| private final AtomicReference | |
| private int | |
| private final String | |
| private CharSequence | |
| private final Transport | |
| private final URI |
| Access | Constructor and Description |
|---|---|
| private | WebSocketImpl(URI uri, HttpClient client, String subprotocol, WebSocket.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private ByteBuffer | |
| private void | |
| private void | |
| private void | |
| public String | getSubprotocol()
Implements java. Returns the subprotocol used by this WebSocket. |
| public boolean | isInputClosed()
Implements java. Tells whether this WebSocket's input is closed. |
| private static boolean | |
| public boolean | isOutputClosed()
Implements java. Tells whether this WebSocket's output is closed. |
| pack-priv static WebSocketImpl | newInstance(URI uri, HttpClient client, String subprotocol, WebSocket.
|
| public static CompletableFuture | |
| private void | |
| private CompletableFuture | |
| public void | request(long n)
Implements java. Increments the counter of invocations of receive methods. |
| public CompletableFuture | sendBinary(ByteBuffer message, boolean last)
Implements java. Sends binary data with bytes from the given buffer. |
| public CompletableFuture | sendClose(int statusCode, String reason)
Implements java. Initiates an orderly closure of this WebSocket's output by sending a Close message with the given status code and the reason. |
| private CompletableFuture | |
| private void | |
| public CompletableFuture | sendPing(ByteBuffer message)
Implements java. Sends a Ping message with bytes from the given buffer. |
| public CompletableFuture | sendPong(ByteBuffer message)
Implements java. Sends a Pong message with bytes from the given buffer. |
| public CompletableFuture | sendText(CharSequence message, boolean last)
Implements java. Sends textual data with characters from the given character sequence. |
| private boolean | |
| private boolean | |
| private void | |
| private void | |
| private void | |
| public String | |
| protected Transport | |
| private boolean | |
| private boolean | |
| private boolean |
| binaryData | back to summary |
|---|---|
| private ByteBuffer binaryData | |
| clientExecutor | back to summary |
|---|---|
| private final Executor clientExecutor | |
| debug | back to summary |
|---|---|
| private static final Logger debug | |
| demand | back to summary |
|---|---|
| private final Demand demand | |
| DONE | back to summary |
|---|---|
| private final MinimalFuture<WebSocket> DONE | |
| error | back to summary |
|---|---|
| private final AtomicReference<Throwable> error | |
| inputClosed | back to summary |
|---|---|
| private volatile boolean inputClosed | |
| last | back to summary |
|---|---|
| private boolean last | |
| lastAutomaticPong | back to summary |
|---|---|
| private final AtomicReference<ByteBuffer> lastAutomaticPong | |
| listener | back to summary |
|---|---|
| private final WebSocket. | |
| outputClosed | back to summary |
|---|---|
| private final AtomicBoolean outputClosed | |
| pendingPingOrPong | back to summary |
|---|---|
| private final AtomicBoolean pendingPingOrPong | |
| pendingTextOrBinary | back to summary |
|---|---|
| private final AtomicBoolean pendingTextOrBinary | |
| reason | back to summary |
|---|---|
| private String reason | |
| receiveCounter | back to summary |
|---|---|
| private final AtomicLong receiveCounter | |
| receiveScheduler | back to summary |
|---|---|
| private final SequentialScheduler receiveScheduler | |
| sendCounter | back to summary |
|---|---|
| private final AtomicLong sendCounter | |
| state | back to summary |
|---|---|
| private final AtomicReference<WebSocketImpl. | |
| statusCode | back to summary |
|---|---|
| private int statusCode | |
| subprotocol | back to summary |
|---|---|
| private final String subprotocol | |
| text | back to summary |
|---|---|
| private CharSequence text | |
| transport | back to summary |
|---|---|
| private final Transport transport | |
| uri | back to summary |
|---|---|
| private final URI uri | |
| WebSocketImpl | back to summary |
|---|---|
| private WebSocketImpl(URI uri, HttpClient client, String subprotocol, WebSocket. | |
| abort | back to summary |
|---|---|
| public void abort() Implements java. Doc from java. Closes this WebSocket's input and output abruptly. When this method returns both the input and the output will have been
closed. Any pending send operations will fail with
| |
| clearAutomaticPong | back to summary |
|---|---|
| private ByteBuffer clearAutomaticPong() | |
| clearPendingPingOrPong | back to summary |
|---|---|
| private void clearPendingPingOrPong() | |
| clearPendingTextOrBinary | back to summary |
|---|---|
| private void clearPendingTextOrBinary() | |
| close | back to summary |
|---|---|
| private void close() | |
| getSubprotocol | back to summary |
|---|---|
| public String getSubprotocol() Implements java. Doc from java. Returns the subprotocol used by this WebSocket.
| |
| isInputClosed | back to summary |
|---|---|
| public boolean isInputClosed() Implements java. Doc from java. Tells whether this WebSocket's input is closed. If this method returns
| |
| isLegalReason | back to summary |
|---|---|
| private static boolean isLegalReason(String reason) | |
| isOutputClosed | back to summary |
|---|---|
| public boolean isOutputClosed() Implements java. Doc from java. Tells whether this WebSocket's output is closed. If this method returns
| |
| newInstance | back to summary |
|---|---|
| pack-priv static WebSocketImpl newInstance(URI uri, HttpClient client, String subprotocol, WebSocket. | |
| newInstanceAsync | back to summary |
|---|---|
| public static CompletableFuture | |
| processCloseError | back to summary |
|---|---|
| private void processCloseError(Throwable e) | |
| replaceNull | back to summary |
|---|---|
| private CompletableFuture | |
| request | back to summary |
|---|---|
| public void request(long n) Implements java. Doc from java. Increments the counter of invocations of receive methods. This WebSocket will invoke
| |
| sendBinary | back to summary |
|---|---|
| public CompletableFuture Implements java. Doc from java. Sends binary data with bytes from the given buffer. The data is located in bytes from the buffer's position to its limit.
Upon normal completion of a The
| |
| sendClose | back to summary |
|---|---|
| public CompletableFuture Implements java. Doc from java. Initiates an orderly closure of this WebSocket's output by sending a Close message with the given status code and the reason. The A
Unless the If not already closed, the input remains open until a Close message
received, or
| |
| sendClose0 | back to summary |
|---|---|
| private CompletableFuture | |
| sendCloseSilently | back to summary |
|---|---|
| private void sendCloseSilently(int statusCode) | |
| sendPing | back to summary |
|---|---|
| public CompletableFuture Implements java. Doc from java. Sends a Ping message with bytes from the given buffer. The message consists of not more than The
| |
| sendPong | back to summary |
|---|---|
| public CompletableFuture Implements java. Doc from java. Sends a Pong message with bytes from the given buffer. The message consists of not more than Given that the WebSocket implementation will automatically send a reciprocal pong when a ping is received, it is rarely required to send a pong message explicitly. The
| |
| sendText | back to summary |
|---|---|
| public CompletableFuture Implements java. Doc from java. Sends textual data with characters from the given character sequence. The character sequence must not be modified until the
A
| |
| setPendingPingOrPong | back to summary |
|---|---|
| private boolean setPendingPingOrPong() | |
| setPendingTextOrBinary | back to summary |
|---|---|
| private boolean setPendingTextOrBinary() | |
| signalClose | back to summary |
|---|---|
| private void signalClose(int statusCode, String reason) | |
| signalError | back to summary |
|---|---|
| private void signalError(Throwable error) | |
| signalOpen | back to summary |
|---|---|
| private void signalOpen() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| transport | back to summary |
|---|---|
| protected Transport transport() | |
| tryChangeState | back to summary |
|---|---|
| private boolean tryChangeState(WebSocketImpl. | |
| trySetState | back to summary |
|---|---|
| private boolean trySetState(WebSocketImpl. | |
| trySwapAutomaticPong | back to summary |
|---|---|
| private boolean trySwapAutomaticPong(ByteBuffer copy) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public void | run()
Implements abstract jdk. The body of the task. |
| ReceiveTask | back to summary |
|---|---|
| private ReceiveTask() | |
| processBinary | back to summary |
|---|---|
| private void processBinary() | |
| processClose | back to summary |
|---|---|
| private void processClose() throws IOException | |
| processError | back to summary |
|---|---|
| private void processError() throws IOException | |
| processOpen | back to summary |
|---|---|
| private void processOpen() | |
| processPing | back to summary |
|---|---|
| private void processPing() | |
| processPong | back to summary |
|---|---|
| private void processPong() | |
| processText | back to summary |
|---|---|
| private void processText() | |
| run | back to summary |
|---|---|
| public void run() Implements abstract jdk. Doc from jdk. The body of the task.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | onBinary(ByteBuffer data, boolean last)
Implements jdk.
|
| public void | onClose(int statusCode, CharSequence reason)
Implements jdk.
|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | onText(CharSequence data, boolean last)
Implements jdk.
|
| SignallingMessageConsumer | back to summary |
|---|---|
| private SignallingMessageConsumer() | |
| onBinary | back to summary |
|---|---|
| public void onBinary(ByteBuffer data, boolean last) Implements jdk.
| |
| onClose | back to summary |
|---|---|
| public void onClose(int statusCode, CharSequence reason) Implements jdk.
| |
| onComplete | back to summary |
|---|---|
| public void onComplete() Implements jdk.
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable error) Implements jdk.
| |
| onPing | back to summary |
|---|---|
| public void onPing(ByteBuffer data) Implements jdk.
| |
| onPong | back to summary |
|---|---|
| public void onPong(ByteBuffer data) Implements jdk.
| |
| onText | back to summary |
|---|---|
| public void onText(CharSequence data, boolean last) Implements jdk.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final WebSocketImpl. | |
| public static final WebSocketImpl. | |
| public static final WebSocketImpl. | |
| public static final WebSocketImpl. | |
| public static final WebSocketImpl. | |
| public static final WebSocketImpl. | |
| public static final WebSocketImpl. | |
| public static final WebSocketImpl. | |
| public static final WebSocketImpl. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static WebSocketImpl. | |
| public static WebSocketImpl. |
| BINARY | back to summary |
|---|---|
| public static final WebSocketImpl. | |
| CLOSE | back to summary |
|---|---|
| public static final WebSocketImpl. | |
| ERROR | back to summary |
|---|---|
| public static final WebSocketImpl. | |
| IDLE | back to summary |
|---|---|
| public static final WebSocketImpl. | |
| OPEN | back to summary |
|---|---|
| public static final WebSocketImpl. | |
| PING | back to summary |
|---|---|
| public static final WebSocketImpl. | |
| PONG | back to summary |
|---|---|
| public static final WebSocketImpl. | |
| TEXT | back to summary |
|---|---|
| public static final WebSocketImpl. | |
| WAITING | back to summary |
|---|---|
| public static final WebSocketImpl. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static WebSocketImpl. | |
| values | back to summary |
|---|---|
| public static WebSocketImpl. | |