Class SharedStateWriter

  • All Implemented Interfaces:
    java.io.Serializable

    public class SharedStateWriter
    extends java.lang.Object
    implements java.io.Serializable
    Serializes shared state changes to JSON.
    Since:
    7.1
    Author:
    Vaadin Ltd
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> write​(UI ui, java.io.Writer writer)
      Writes a JSON object containing the pending state changes of the dirty connectors of the given UI.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SharedStateWriter

        public SharedStateWriter()
    • Method Detail

      • write

        public java.util.Set<java.lang.String> write​(UI ui,
                                                     java.io.Writer writer)
                                              throws java.io.IOException
        Writes a JSON object containing the pending state changes of the dirty connectors of the given UI.
        Parameters:
        ui - The UI whose state changes should be written.
        writer - The writer to use.
        Returns:
        a set of connector ids with state changes
        Throws:
        java.io.IOException - If the serialization fails.