RemoteEndpointpublic class WebSocketRemoteEndpoint extends java.lang.Object implements RemoteEndpoint
| Constructor | Description |
|---|---|
WebSocketRemoteEndpoint(LogicalConnection connection,
OutgoingFrames outgoing) |
|
WebSocketRemoteEndpoint(LogicalConnection connection,
OutgoingFrames outgoing,
BatchMode batchMode) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
flush() |
|
BatchMode |
getBatchMode() |
|
java.net.InetSocketAddress |
getInetSocketAddress() |
Get the InetSocketAddress for the established connection.
|
void |
sendBytes(java.nio.ByteBuffer data) |
Blocking write of bytes.
|
void |
sendBytes(java.nio.ByteBuffer data,
WriteCallback callback) |
|
java.util.concurrent.Future<java.lang.Void> |
sendBytesByFuture(java.nio.ByteBuffer data) |
|
void |
sendPartialBytes(java.nio.ByteBuffer fragment,
boolean isLast) |
|
void |
sendPartialString(java.lang.String fragment,
boolean isLast) |
|
void |
sendPing(java.nio.ByteBuffer applicationData) |
|
void |
sendPong(java.nio.ByteBuffer applicationData) |
|
void |
sendString(java.lang.String text) |
|
void |
sendString(java.lang.String text,
WriteCallback callback) |
|
java.util.concurrent.Future<java.lang.Void> |
sendStringByFuture(java.lang.String text) |
|
void |
setBatchMode(BatchMode batchMode) |
|
java.lang.String |
toString() |
|
void |
uncheckedSendFrame(WebSocketFrame frame,
WriteCallback callback) |
public WebSocketRemoteEndpoint(LogicalConnection connection, OutgoingFrames outgoing)
public WebSocketRemoteEndpoint(LogicalConnection connection, OutgoingFrames outgoing, BatchMode batchMode)
public java.net.InetSocketAddress getInetSocketAddress()
getInetSocketAddress in interface RemoteEndpointpublic void sendBytes(java.nio.ByteBuffer data)
throws java.io.IOException
sendBytes in interface RemoteEndpointjava.io.IOExceptionpublic java.util.concurrent.Future<java.lang.Void> sendBytesByFuture(java.nio.ByteBuffer data)
sendBytesByFuture in interface RemoteEndpointpublic void sendBytes(java.nio.ByteBuffer data,
WriteCallback callback)
sendBytes in interface RemoteEndpointpublic void uncheckedSendFrame(WebSocketFrame frame, WriteCallback callback)
public void sendPartialBytes(java.nio.ByteBuffer fragment,
boolean isLast)
throws java.io.IOException
sendPartialBytes in interface RemoteEndpointjava.io.IOExceptionpublic void sendPartialString(java.lang.String fragment,
boolean isLast)
throws java.io.IOException
sendPartialString in interface RemoteEndpointjava.io.IOExceptionpublic void sendPing(java.nio.ByteBuffer applicationData)
throws java.io.IOException
sendPing in interface RemoteEndpointjava.io.IOExceptionpublic void sendPong(java.nio.ByteBuffer applicationData)
throws java.io.IOException
sendPong in interface RemoteEndpointjava.io.IOExceptionpublic void sendString(java.lang.String text)
throws java.io.IOException
sendString in interface RemoteEndpointjava.io.IOExceptionpublic java.util.concurrent.Future<java.lang.Void> sendStringByFuture(java.lang.String text)
sendStringByFuture in interface RemoteEndpointpublic void sendString(java.lang.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 java.io.IOException
flush in interface RemoteEndpointjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 1995–2018 Webtide. All rights reserved.