public class BufferedTextMessage extends Object
Constructor and Description |
---|
BufferedTextMessage(boolean bufferFullMessage) |
BufferedTextMessage(long maxMessageSize,
boolean bufferFullMessage) |
Modifier and Type | Method and Description |
---|---|
String |
getData()
Gets the buffered data and clears the buffered text message.
|
boolean |
isComplete() |
void |
read(StreamSourceFrameChannel channel,
WebSocketCallback<BufferedTextMessage> callback) |
void |
readBlocking(StreamSourceFrameChannel channel) |
public BufferedTextMessage(long maxMessageSize, boolean bufferFullMessage)
maxMessageSize
- The maximum message sizebufferFullMessage
- If the complete message should be bufferedpublic BufferedTextMessage(boolean bufferFullMessage)
public void readBlocking(StreamSourceFrameChannel channel) throws IOException
IOException
public void read(StreamSourceFrameChannel channel, WebSocketCallback<BufferedTextMessage> callback)
public String getData()
public boolean isComplete()
Copyright © 2020 JBoss by Red Hat. All rights reserved.