com.vaadin.flow.server.communication.

Class AtmospherePushConnection.FragmentedMessage

java.lang.Object
com.vaadin.flow.server.communication.AtmospherePushConnection.FragmentedMessage

All Implemented Interfaces:

Serializable

Enclosing class:

AtmospherePushConnection

public static class AtmospherePushConnection.FragmentedMessage extends Object implements Serializable

Represents a message that can arrive as multiple fragments.

See Also:

  • 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

      public boolean append(Reader reader) throws IOException

      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

      public Reader getReader()