|
YAACC - UPNP Client and Server
|
The per-renderer state of the server-side time range management of ONE share. More...

Classes | |
| class | State |
| What is known about one renderer. | |
Public Member Functions | |
| RendererStateMap (int max) | |
| synchronized State | get (String deviceId) |
| synchronized State | create (String deviceId, long initialTimeMs) |
| synchronized boolean | update (String deviceId, long timeMs, boolean paused) |
| Sets the playback time and pause flag of an EXISTING state. | |
| synchronized int | size () |
| synchronized void | clear () |
Static Public Attributes | |
| static final int | DEFAULT_MAX = 8 |
| Renderers per share. | |
The per-renderer state of the server-side time range management of ONE share.
Bounded: at most max renderers; when a new one arrives the least recently used is dropped. A state is created only for a valid device id (RendererIdPolicy) and only by create; get and update never create one, so lookups with unknown ids cannot grow the map. The map lives inside the share's target, so it disappears with the share. Thread safe.
| de.yaacc.share.RendererStateMap.RendererStateMap | ( | int | max | ) |
| IllegalArgumentException | if max is not positive |
| synchronized State de.yaacc.share.RendererStateMap.create | ( | String | deviceId, |
| long | initialTimeMs ) |
initialTimeMs (dropping the least recently used if the map is full); null for an invalid id Referenced by de.yaacc.share.ServerSideSeeking.plan().

| synchronized State de.yaacc.share.RendererStateMap.get | ( | String | deviceId | ) |
Referenced by de.yaacc.share.ServerSideSeeking.plan().

| synchronized boolean de.yaacc.share.RendererStateMap.update | ( | String | deviceId, |
| long | timeMs, | ||
| boolean | paused ) |
Sets the playback time and pause flag of an EXISTING state.
|
static |
Renderers per share.
With at most ShareRegistry#DEFAULT_MAX_ACTIVE shares the whole process holds at most 64 states.