|
YAACC - UPNP Client and Server
|
Keeps the state of the server over a restart (issue #330, requirement R8): a change is written, but not more often than once a second, and a damaged store is ignored when it is read. More...

Classes | |
| interface | Backing |
| Where the text is kept (a preference in the app, a map in a test). More... | |
Public Member Functions | |
| ServerStore (Backing backing, LongSupplier nowMillis) | |
| synchronized void | changed (ServerState state) |
| The state changed: writes it if the last write is over a second ago (a later call writes what a skipped one left). | |
| synchronized void | flush (ServerState state) |
| Writes at once (the server stops). | |
| void | restoreInto (ServerState state) |
| Reads what was kept into an empty state; what is wrong with it is left out. | |
Keeps the state of the server over a restart (issue #330, requirement R8): a change is written, but not more often than once a second, and a damaged store is ignored when it is read.