Class DocumentBroadcastConfig

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String connect​(java.util.Map<java.lang.String,​java.lang.String> clientInfo)
      Announce a new client to others.
      void disconnect​(java.lang.String id)
      Sign off.
      java.util.List<java.util.Map<java.lang.String,​java.lang.String>> getClientInfo()
      Get the client info of all connected clients.
      java.lang.String getConfig()
      Get the global configuration data that is not associated to a specific client.
      • Methods inherited from class java.lang.Object

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

      • DocumentBroadcastConfig

        public DocumentBroadcastConfig​(DocumentNodeStore documentNodeStore)
    • Method Detail

      • getConfig

        public java.lang.String getConfig()
        Description copied from interface: DynamicBroadcastConfig
        Get the global configuration data that is not associated to a specific client.
        Specified by:
        getConfig in interface DynamicBroadcastConfig
        Returns:
        the configuration
      • getClientInfo

        public java.util.List<java.util.Map<java.lang.String,​java.lang.String>> getClientInfo()
        Description copied from interface: DynamicBroadcastConfig
        Get the client info of all connected clients.
        Specified by:
        getClientInfo in interface DynamicBroadcastConfig
        Returns:
        the list of client info maps
      • connect

        public java.lang.String connect​(java.util.Map<java.lang.String,​java.lang.String> clientInfo)
        Description copied from interface: DynamicBroadcastConfig
        Announce a new client to others.
        Specified by:
        connect in interface DynamicBroadcastConfig
        Parameters:
        clientInfo - the client info
        Returns:
        a unique id (to be used when disconnecting)