YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.snapcast.server.ServerStore Class Reference

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...

Collaboration diagram for de.yaacc.snapcast.server.ServerStore:
Collaboration graph

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.
 

Detailed Description

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.


The documentation for this class was generated from the following file: