Interface RemoteEndpoint.Basic

All Superinterfaces:
RemoteEndpoint
Enclosing interface:
RemoteEndpoint

public static interface RemoteEndpoint.Basic extends RemoteEndpoint
This representation of the peer of a web socket conversation has the ability to send messages synchronously. The point of completion of the send is defined when all the supplied data has been written to the underlying connection. The methods for sending messages on the RemoteEndpoint.Basic block until this point of completion is reached, except for getSendStream and getSendWriter which present traditional blocking I/O streams to write messages.

If the websocket connection underlying this RemoteEndpoint is busy sending a message when a call is made to send another one, for example if two threads attempt to call a send method concurrently, or if a developer attempts to send a new message while in the middle of sending an existing one, the send method called while the connection is already busy may throw an IllegalStateException.