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 privateProxyManagerClientSet()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddClient(Client client)Adds a client to this model.voidremoveClient(Client client)Removes a client from this model.voidsetClients(Client[] clients)Sets the contents of this model to a given list.voidupdateClient(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:TrackedClientSetAdds a client to this model. Listeners are informed. May be called from any thread.- Overrides:
addClientin classTrackedClientSet- Parameters:
client- client to add
-
removeClient
public void removeClient(Client client)
Description copied from class:TrackedClientSetRemoves a client from this model. Listeners are informed. May be called from any thread.- Overrides:
removeClientin classTrackedClientSet- Parameters:
client- client to remove
-
updateClient
public void updateClient(Client client, boolean metaChanged, boolean subsChanged)
Description copied from class:TrackedClientSetNotifies listeners that a given client's attributes (may) have changed. May be called from any thread.- Overrides:
updateClientin 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:TrackedClientSetSets the contents of this model to a given list. Listeners are informed. May be called from any thread.- Overrides:
setClientsin classTrackedClientSet- Parameters:
clients- current client list
-
-