We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.server.communication.
Class AtmospherePushConnection.FragmentedMessage
java.lang.Object
com.vaadin.flow.server.communication.AtmospherePushConnection.FragmentedMessage
All Implemented Interfaces:
Enclosing class:
public static class AtmospherePushConnection.FragmentedMessage
extends Object
implements Serializable
Represents a message that can arrive as multiple fragments.
See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FragmentedMessage
public FragmentedMessage()Creates a message by reading from the given reader.
Immediately reads the length of the message (up until '|') from the reader.
-
-
Method Details
-
append
Appends all the data from the given Reader to this message and returns whether the message was completed.
Parameters:
reader
- The Reader from which to read.Returns:
true if this message is complete, false otherwise.
Throws:
IOException
- if an IO error occurred -
getReader
-