public class WebSocketRemoteEndpoint extends Object implements RemoteEndpoint
| Constructor and Description |
|---|
WebSocketRemoteEndpoint(LogicalConnection connection,
OutgoingFrames outgoing) |
WebSocketRemoteEndpoint(LogicalConnection connection,
OutgoingFrames outgoing,
BatchMode batchMode) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
BatchMode |
getBatchMode() |
InetSocketAddress |
getInetSocketAddress()
Get the InetSocketAddress for the established connection.
|
void |
sendBytes(ByteBuffer data)
Blocking write of bytes.
|
void |
sendBytes(ByteBuffer data,
WriteCallback callback) |
Future<Void> |
sendBytesByFuture(ByteBuffer data) |
void |
sendPartialBytes(ByteBuffer fragment,
boolean isLast) |
void |
sendPartialString(String fragment,
boolean isLast) |
void |
sendPing(ByteBuffer applicationData) |
void |
sendPong(ByteBuffer applicationData) |
void |
sendString(String text) |
void |
sendString(String text,
WriteCallback callback) |
Future<Void> |
sendStringByFuture(String text) |
void |
setBatchMode(BatchMode batchMode) |
String |
toString() |
void |
uncheckedSendFrame(WebSocketFrame frame,
WriteCallback callback) |
public WebSocketRemoteEndpoint(LogicalConnection connection, OutgoingFrames outgoing)
public WebSocketRemoteEndpoint(LogicalConnection connection, OutgoingFrames outgoing, BatchMode batchMode)
public InetSocketAddress getInetSocketAddress()
getInetSocketAddress in interface RemoteEndpointpublic void sendBytes(ByteBuffer data) throws IOException
sendBytes in interface RemoteEndpointIOExceptionpublic Future<Void> sendBytesByFuture(ByteBuffer data)
sendBytesByFuture in interface RemoteEndpointpublic void sendBytes(ByteBuffer data, WriteCallback callback)
sendBytes in interface RemoteEndpointpublic void uncheckedSendFrame(WebSocketFrame frame, WriteCallback callback)
public void sendPartialBytes(ByteBuffer fragment, boolean isLast) throws IOException
sendPartialBytes in interface RemoteEndpointIOExceptionpublic void sendPartialString(String fragment, boolean isLast) throws IOException
sendPartialString in interface RemoteEndpointIOExceptionpublic void sendPing(ByteBuffer applicationData) throws IOException
sendPing in interface RemoteEndpointIOExceptionpublic void sendPong(ByteBuffer applicationData) throws IOException
sendPong in interface RemoteEndpointIOExceptionpublic void sendString(String text) throws IOException
sendString in interface RemoteEndpointIOExceptionpublic Future<Void> sendStringByFuture(String text)
sendStringByFuture in interface RemoteEndpointpublic void sendString(String text, WriteCallback callback)
sendString in interface RemoteEndpointpublic BatchMode getBatchMode()
getBatchMode in interface RemoteEndpointpublic void setBatchMode(BatchMode batchMode)
setBatchMode in interface RemoteEndpointpublic void flush()
throws IOException
flush in interface RemoteEndpointIOExceptionCopyright © 1995-2016 Webtide. All Rights Reserved.