org.fourthline.cling.model.gena
Class GENASubscription<S extends Service>
java.lang.Object
org.fourthline.cling.model.gena.GENASubscription<S>
- Direct Known Subclasses:
- LocalGENASubscription, RemoteGENASubscription
public abstract class GENASubscription<S extends Service>
- extends Object
An established subscription, with identifer, expiration duration, sequence handling, and state variable values.
For every subscription, no matter if it's an incoming subscription to a local service,
or a local control point subscribing to a remote servce, an instance is maintained by
the Registry
.
- Author:
- Christian Bauer
service
protected S extends Service service
subscriptionId
protected String subscriptionId
requestedDurationSeconds
protected int requestedDurationSeconds
actualDurationSeconds
protected int actualDurationSeconds
currentSequence
protected UnsignedIntegerFourBytes currentSequence
currentValues
protected Map<String,StateVariableValue<S extends Service>> currentValues
GENASubscription
protected GENASubscription(S service)
- Defaults to
UserConstants.DEFAULT_SUBSCRIPTION_DURATION_SECONDS
.
GENASubscription
public GENASubscription(S service,
int requestedDurationSeconds)
getService
public S getService()
getSubscriptionId
public String getSubscriptionId()
setSubscriptionId
public void setSubscriptionId(String subscriptionId)
getRequestedDurationSeconds
public int getRequestedDurationSeconds()
getActualDurationSeconds
public int getActualDurationSeconds()
setActualSubscriptionDurationSeconds
public void setActualSubscriptionDurationSeconds(int seconds)
getCurrentSequence
public UnsignedIntegerFourBytes getCurrentSequence()
getCurrentValues
public Map<String,StateVariableValue<S>> getCurrentValues()
established
public abstract void established()
eventReceived
public abstract void eventReceived()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013 4th Line GmbH, Switzerland. All Rights Reserved.