|
YAACC - UPNP Client and Server
|
When the notification of the service is rebuilt. More...

Public Member Functions | |
| synchronized boolean | shouldRefresh (Object key, boolean phaseChange, long nowMillis) |
Static Public Attributes | |
| static final long | MIN_INTERVAL_MS = 1000L |
When the notification of the service is rebuilt.
A rebuild costs binder calls on the main thread, and the events that ask for one (every server settings message, every status) are driven by the server, so the rule is: never when the shown text would be the same, at once for a change of phase (connecting, playing, reconnecting), and at most once per second for any other change. A request that is held back is not remembered; the status asks again every 250 ms. Pure.
| synchronized boolean de.yaacc.snapcast.client.NotificationPolicy.shouldRefresh | ( | Object | key, |
| boolean | phaseChange, | ||
| long | nowMillis ) |
| key | what would be shown (the text); equal keys are the same notification |
| phaseChange | true when the request comes from a change of phase |