| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| private final CoreSession | |
| private static final Logger | |
| protected byte | |
| protected final JakartaWebSocketSession |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| public void | flushBatch()
Implements jakarta. This method is only used when batching is allowed for this RemoteEndpint. |
| public boolean | getBatchingAllowed()
Implements jakarta. Return whether the implementation is allowed to batch outgoing messages before sending. |
| public long | |
| public long | |
| protected MessageOutputStream | |
| protected MessageWriter | |
| public void | sendFrame(Frame
the frame to eventually write to the network layer. frame, Callback the callback to notify when the frame is written. callback, boolean the batch mode requested by the sender. batch)Implements org. A frame, and optional callback, intended for the network layer. |
| public void | |
| public void | sendPing(ByteBuffer
the data to be carried in the ping request. data)Implements jakarta. Send a Ping message containing the given application data to the remote endpoint. |
| public void | sendPong(ByteBuffer
the application data to be carried in the pong response. data)Implements jakarta. Allows the developer to send an unsolicited Pong message containing the given application data in order to serve as a unidirectional heartbeat for the session. |
| public void | setBatchingAllowed(boolean
whether the implementation is allowed to batch messages. allowed)Implements jakarta. Indicate to the implementation that it is allowed to batch outgoing messages before sending. |
| public void | |
| public void |
| batch | back to summary |
|---|---|
| protected boolean batch | |
| coreSession | back to summary |
|---|---|
| private final CoreSession coreSession | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| messageType | back to summary |
|---|---|
| protected byte messageType | |
| session | back to summary |
|---|---|
| protected final JakartaWebSocketSession session | |
| JakartaWebSocketRemoteEndpoint | back to summary |
|---|---|
| protected JakartaWebSocketRemoteEndpoint(JakartaWebSocketSession session, CoreSession coreSession) | |
| assertMessageNotNull | back to summary |
|---|---|
| protected void assertMessageNotNull(Object data) | |
| assertSendHandlerNotNull | back to summary |
|---|---|
| protected void assertSendHandlerNotNull(SendHandler handler) | |
| flushBatch | back to summary |
|---|---|
| public void flushBatch() throws IOException Implements jakarta. Doc from jakarta. This method is only used when batching is allowed for this RemoteEndpint. Calling this method forces the implementation to send any unsent messages it has been batching.
| |
| getBatchingAllowed | back to summary |
|---|---|
| public boolean getBatchingAllowed() Implements jakarta. Doc from jakarta. Return whether the implementation is allowed to batch outgoing messages before sending. The default mode for
RemoteEndpoints is false. The value may be changed by calling
| |
| getIdleTimeout | back to summary |
|---|---|
| public long getIdleTimeout() | |
| getWriteTimeout | back to summary |
|---|---|
| public long getWriteTimeout() | |
| newMessageOutputStream | back to summary |
|---|---|
| protected MessageOutputStream newMessageOutputStream() | |
| newMessageWriter | back to summary |
|---|---|
| protected MessageWriter newMessageWriter() | |
| sendFrame | back to summary |
|---|---|
| public void sendFrame(Frame frame, Callback callback, boolean batch) Implements org. Doc from org. A frame, and optional callback, intended for the network layer. Note the frame can undergo many transformations in the various layers and extensions present in the implementation. If you are implementing a mutation, you are obliged to handle the incoming Callback appropriately. | |
| sendObject | back to summary |
|---|---|
| public void sendObject(Object data, Callback callback) throws IOException, EncodeException | |
| sendPing | back to summary |
|---|---|
| public void sendPing(ByteBuffer data) throws IOException, IllegalArgumentException Implements jakarta. Doc from jakarta. Send a Ping message containing the given application data to the remote endpoint. The corresponding Pong message may be picked up using the MessageHandler.Pong handler. It is not safe for other threads to use the ByteBuffer until the sending of this message is complete. If the sending of the message completes successfully, the buffer's limit will be unchanged and the buffer's position will be equal to the limit. If the sending of the message does not complete successfully, the state of the buffer is undefined.
| |
| sendPong | back to summary |
|---|---|
| public void sendPong(ByteBuffer data) throws IOException, IllegalArgumentException Implements jakarta. Doc from jakarta. Allows the developer to send an unsolicited Pong message containing the given application data in order to serve as a unidirectional heartbeat for the session. It is not safe for other threads to use the ByteBuffer until the sending of this message is complete. If the sending of the message completes successfully, the buffer's limit will be unchanged and the buffer's position will be equal to the limit. If the sending of the message does not complete successfully, the state of the buffer is undefined.
| |
| setBatchingAllowed | back to summary |
|---|---|
| public void setBatchingAllowed(boolean allowed) throws IOException Implements jakarta. Doc from jakarta. Indicate to the implementation that it is allowed to batch outgoing messages before sending. Not all implementations support batching of outgoing messages. The default mode for RemoteEndpoints is false. If the developer has indicated that batching of outgoing messages is permitted, then the developer must call flushBatch() in order to be sure that all the messages passed into the send methods of this RemoteEndpoint are sent. When batching is allowed, the implementations send operations are considered to have completed if the message has been written to the local batch, in the case when there is still room in the batch for the message, and are considered to have completed if the batch has been send to the peer and the remainder written to the new batch, in the case when writing the message causes the batch to need to be sent. The blocking and asynchronous send methods use this notion of completion in order to complete blocking calls, notify SendHandlers and complete Futures respectively. When batching is allowed, if the developer has called send methods on this RemoteEndpoint without calling flushBatch(), then the implementation may not have sent all the messages the developer has asked to be sent. If the parameter value is false and the implementation has a batch of unsent messages, then the implementation must immediately send the batch of unsent messages.
| |
| setIdleTimeout | back to summary |
|---|---|
| public void setIdleTimeout(long ms) | |
| setWriteTimeout | back to summary |
|---|---|
| public void setWriteTimeout(long ms) | |