|
YAACC - UPNP Client and Server
|
What choosing another server for the phone's client does (task 12.10), without Android. More...

Classes | |
| enum | Action |
| What to do with the chosen server. More... | |
| enum | Wait |
| One step of the wait for the end of the old session. More... | |
Static Public Member Functions | |
| static Action | decide (boolean switchedOn, boolean sessionActive, boolean restartPending, String currentHost, String chosenHost) |
| static Wait | waitStep (boolean sessionGone, long waitedMs, long maxMs) |
What choosing another server for the phone's client does (task 12.10), without Android.
Off: it only changes the next start. On with a session on another server: the session ends and starts again on the new one, once, with the state staying on. The same server: nothing is restarted. On without a session (it gave up, a start was refused): the choice starts the client on the new server. Also the bounded wait between the end of the old session and the new start. Pure.
|
static |
| switchedOn | the stored state of the client |
| sessionActive | a session starts, runs or reconnects |
| restartPending | an earlier choice is still waiting for the end of the old session |
| currentHost | the server the client uses now (null or empty when none) |
| chosenHost | the server the user chose |
Referenced by de.yaacc.snapcast.client.SnapcastClientPower.chooseServer().


|
static |
| sessionGone | the session and the service instance of the old session are gone |
| waitedMs | how long the restart has waited |
| maxMs | the longest wait: a teardown that never ends must not hold the choice for ever |