Class ProxyManager.ProxyManagerClientSet

  • Enclosing class:
    ProxyManager

    private class ProxyManager.ProxyManagerClientSet
    extends TrackedClientSet
    TrackedClientSet implementation used by a Proxy Manager. Apart from inheriting default behaviour, this triggers calls to ProxyManager methods when there are status changes to local clients.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ProxyManagerClientSet()
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addClient​(Client client)
      Adds a client to this model.
      void removeClient​(Client client)
      Removes a client from this model.
      void setClients​(Client[] clients)
      Sets the contents of this model to a given list.
      void updateClient​(Client client, boolean metaChanged, boolean subsChanged)
      Notifies listeners that a given client's attributes (may) have changed.
      • Methods inherited from class java.lang.Object

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

      • ProxyManagerClientSet

        private ProxyManagerClientSet()
        Constructor.
    • Method Detail

      • addClient

        public void addClient​(Client client)
        Description copied from class: TrackedClientSet
        Adds a client to this model. Listeners are informed. May be called from any thread.
        Overrides:
        addClient in class TrackedClientSet
        Parameters:
        client - client to add
      • removeClient

        public void removeClient​(Client client)
        Description copied from class: TrackedClientSet
        Removes a client from this model. Listeners are informed. May be called from any thread.
        Overrides:
        removeClient in class TrackedClientSet
        Parameters:
        client - client to remove
      • updateClient

        public void updateClient​(Client client,
                                 boolean metaChanged,
                                 boolean subsChanged)
        Description copied from class: TrackedClientSet
        Notifies listeners that a given client's attributes (may) have changed. May be called from any thread.
        Overrides:
        updateClient in class TrackedClientSet
        Parameters:
        client - modified client
        metaChanged - true if metadata may have changed (false if known unchanged)
        subsChanged - true if subscriptions may have changed (false if known unchanged)
      • setClients

        public void setClients​(Client[] clients)
        Description copied from class: TrackedClientSet
        Sets the contents of this model to a given list. Listeners are informed. May be called from any thread.
        Overrides:
        setClients in class TrackedClientSet
        Parameters:
        clients - current client list