Class ChatStateStore

  • All Implemented Interfaces:
    Observer<ChatState>


    public class ChatStateStore
    extends Observable<ChatState>
    implements Observer<ChatState>
    Source of truth for the local chat state.

    This class builds up a local representation of the chat state based on: - updating remote logs in the DataNode - inserted and/or removed local logs

    • Method Detail

      • update

        public void update(ChatState chatState)
        Description copied from interface: Observer
        Called when an observable object has been updated.
        Specified by:
        update in interface Observer<ChatState>
        Parameters:
        chatState - the updated object