public abstract class RemoteGENASubscription extends GENASubscription<RemoteService>
Once established, calls its GENASubscription.eventReceived()
method whenever an event has
been received from the remote service.
Modifier and Type | Field and Description |
---|---|
protected PropertyChangeSupport |
propertyChangeSupport |
actualDurationSeconds, currentSequence, currentValues, requestedDurationSeconds, service, subscriptionId
Modifier | Constructor and Description |
---|---|
protected |
RemoteGENASubscription(RemoteService service,
int requestedDurationSeconds) |
Modifier and Type | Method and Description |
---|---|
void |
end(CancelReason reason,
UpnpResponse response) |
abstract void |
ended(CancelReason reason,
UpnpResponse responseStatus) |
void |
establish() |
abstract void |
eventsMissed(int numberOfMissedEvents) |
void |
fail(UpnpResponse responseStatus) |
abstract void |
failed(UpnpResponse responseStatus) |
List<URL> |
getEventCallbackURLs(List<NetworkAddress> activeStreamServers,
Namespace namespace) |
URL |
getEventSubscriptionURL() |
abstract void |
invalidMessage(UnsupportedDataException ex) |
void |
receive(UnsignedIntegerFourBytes sequence,
Collection<StateVariableValue> newValues) |
String |
toString() |
established, eventReceived, getActualDurationSeconds, getCurrentSequence, getCurrentValues, getRequestedDurationSeconds, getService, getSubscriptionId, setActualSubscriptionDurationSeconds, setSubscriptionId
protected PropertyChangeSupport propertyChangeSupport
protected RemoteGENASubscription(RemoteService service, int requestedDurationSeconds)
public URL getEventSubscriptionURL()
public List<URL> getEventCallbackURLs(List<NetworkAddress> activeStreamServers, Namespace namespace)
public void establish()
public void fail(UpnpResponse responseStatus)
public void end(CancelReason reason, UpnpResponse response)
public void receive(UnsignedIntegerFourBytes sequence, Collection<StateVariableValue> newValues)
public abstract void invalidMessage(UnsupportedDataException ex)
public abstract void failed(UpnpResponse responseStatus)
public abstract void ended(CancelReason reason, UpnpResponse responseStatus)
public abstract void eventsMissed(int numberOfMissedEvents)
public String toString()
toString
in class GENASubscription<RemoteService>
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.