Package org.astrogrid.samp.bridge
Class ProxyManager.ProxyManagerClientSet
- java.lang.Object
-
- org.astrogrid.samp.client.TrackedClientSet
-
- org.astrogrid.samp.bridge.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 org.astrogrid.samp.client.TrackedClientSet
getClientMap
-
-
-
-
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 classTrackedClientSet
- 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 classTrackedClientSet
- 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 classTrackedClientSet
- Parameters:
client
- modified clientmetaChanged
- 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 classTrackedClientSet
- Parameters:
clients
- current client list
-
-