public static interface RemoteEndpoint.Basic extends RemoteEndpoint
RemoteEndpoint.Async, RemoteEndpoint.Basic
Modifier and Type | Method and Description |
---|---|
OutputStream |
getSendStream() |
Writer |
getSendWriter() |
void |
sendBinary(ByteBuffer data)
Send the message, blocking until the message is sent.
|
void |
sendBinary(ByteBuffer partialByte,
boolean isLast)
Sends part of a binary message to the remote endpoint.
|
void |
sendObject(Object o) |
void |
sendText(String text)
Send the message, blocking until the message is sent.
|
void |
sendText(String fragment,
boolean isLast)
Sends part of a text message to the remote endpoint.
|
flushBatch, getBatchingAllowed, sendPing, sendPong, setBatchingAllowed
void sendText(String text) throws IOException
text
- The text message to send.IOException
void sendBinary(ByteBuffer data) throws IOException
data
- The binary message to sendIOException
void sendText(String fragment, boolean isLast) throws IOException
fragment
- The partial message to sendisLast
- true
if this is the last part of the
message, otherwise false
IOException
void sendBinary(ByteBuffer partialByte, boolean isLast) throws IOException
partialByte
- The partial message to sendisLast
- true
if this is the last part of the
message, otherwise false
IOException
OutputStream getSendStream() throws IOException
IOException
Writer getSendWriter() throws IOException
IOException
void sendObject(Object o) throws IOException, EncodeException
IOException
EncodeException
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.