YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.snapcast.feed.FeedSlot Interface Reference

The right to feed one server: a snapserver's tcp source takes one producer at a time, and a phone has one stream per server, so only one feed per server may be open. More...

Collaboration diagram for de.yaacc.snapcast.feed.FeedSlot:
Collaboration graph

Public Member Functions

boolean tryAcquire (long waitMillis)
 Takes the slot, waiting for the time given if somebody else (the feed of a player that is just ending) holds it.
 
void release ()
 Gives the slot back; a no-op if this holder does not have it.
 

Detailed Description

The right to feed one server: a snapserver's tcp source takes one producer at a time, and a phone has one stream per server, so only one feed per server may be open.

FeedSlots hands them out.

Member Function Documentation

◆ tryAcquire()

boolean de.yaacc.snapcast.feed.FeedSlot.tryAcquire ( long waitMillis)

Takes the slot, waiting for the time given if somebody else (the feed of a player that is just ending) holds it.

Taking it again while this holder has it is fine.

Returns
false if it stayed taken

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