public class LastChange extends Object
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.
Constructor and Description |
---|
LastChange(LastChangeParser parser) |
LastChange(LastChangeParser parser,
Event event) |
LastChange(LastChangeParser parser,
String xml) |
LastChange(String s) |
Modifier and Type | Method and Description |
---|---|
void |
fire(PropertyChangeSupport propertyChangeSupport) |
<EV extends EventedValue> |
getEventedValue(int instanceID,
Class<EV> type) |
<EV extends EventedValue> |
getEventedValue(org.fourthline.cling.model.types.UnsignedIntegerFourBytes id,
Class<EV> type) |
org.fourthline.cling.model.types.UnsignedIntegerFourBytes[] |
getInstanceIDs() |
void |
reset() |
void |
setEventedValue(int instanceID,
EventedValue... ev) |
void |
setEventedValue(org.fourthline.cling.model.types.UnsignedIntegerFourBytes instanceID,
EventedValue... ev) |
String |
toString() |
public LastChange(String s)
public LastChange(LastChangeParser parser, Event event)
public LastChange(LastChangeParser parser)
public LastChange(LastChangeParser parser, String xml) throws Exception
Exception
public void reset()
public void setEventedValue(int instanceID, EventedValue... ev)
public void setEventedValue(org.fourthline.cling.model.types.UnsignedIntegerFourBytes instanceID, EventedValue... ev)
public org.fourthline.cling.model.types.UnsignedIntegerFourBytes[] getInstanceIDs()
public <EV extends EventedValue> EV getEventedValue(int instanceID, Class<EV> type)
public <EV extends EventedValue> EV getEventedValue(org.fourthline.cling.model.types.UnsignedIntegerFourBytes id, Class<EV> type)
public void fire(PropertyChangeSupport propertyChangeSupport)
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.