Package org.jupnp.support.lastchange
Klasse LastChange
java.lang.Object
org.jupnp.support.lastchange.LastChange
Collects all state changes per logical instance.
This class is supposed to be used on a UPnP state variable field, on a RenderingControl or AVTransport service. The service then sets evented values whenever its state changes, and periodically (e.g. in a background loop) fires the "LastChange" XML content through its PropertyChangeSupport. (Where the ServiceManager picks it up and sends it to all subscribers.)
The event subscriber can use this class to marshall the "LastChange" content, when the event XML is received.
This class is thread-safe.
- Autor:
- Christian Bauer - Initial Contribution, Amit Kumar Mondal - Code Refactoring
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungLastChange(String s) LastChange(LastChangeParser parser) LastChange(LastChangeParser parser, String xml) LastChange(LastChangeParser parser, Event event) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidfire(PropertyChangeSupport propertyChangeSupport) <EV extends EventedValue<?>>
EVgetEventedValue(int instanceID, Class<EV> type) <EV extends EventedValue<?>>
EVgetEventedValue(UnsignedIntegerFourBytes id, Class<EV> type) voidreset()voidsetEventedValue(int instanceID, EventedValue<?>... ev) voidsetEventedValue(UnsignedIntegerFourBytes instanceID, EventedValue<?>... ev) toString()