public abstract class GENASubscription<S extends Service> extends Object
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.
| Modifier and Type | Field and Description |
|---|---|
protected int |
actualDurationSeconds |
protected UnsignedIntegerFourBytes |
currentSequence |
protected Map<String,StateVariableValue<S>> |
currentValues |
protected int |
requestedDurationSeconds |
protected S |
service |
protected String |
subscriptionId |
| Modifier | Constructor and Description |
|---|---|
protected |
GENASubscription(S service)
Defaults to
UserConstants.DEFAULT_SUBSCRIPTION_DURATION_SECONDS. |
|
GENASubscription(S service,
int requestedDurationSeconds) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
established() |
abstract void |
eventReceived() |
int |
getActualDurationSeconds() |
UnsignedIntegerFourBytes |
getCurrentSequence() |
Map<String,StateVariableValue<S>> |
getCurrentValues() |
int |
getRequestedDurationSeconds() |
S |
getService() |
String |
getSubscriptionId() |
void |
setActualSubscriptionDurationSeconds(int seconds) |
void |
setSubscriptionId(String subscriptionId) |
String |
toString() |
protected volatile String subscriptionId
protected volatile int requestedDurationSeconds
protected volatile int actualDurationSeconds
protected volatile UnsignedIntegerFourBytes currentSequence
protected Map<String,StateVariableValue<S extends Service>> currentValues
protected GENASubscription(S service)
UserConstants.DEFAULT_SUBSCRIPTION_DURATION_SECONDS.public GENASubscription(S service, int requestedDurationSeconds)
public S getService()
public String getSubscriptionId()
public void setSubscriptionId(String subscriptionId)
public int getRequestedDurationSeconds()
public int getActualDurationSeconds()
public void setActualSubscriptionDurationSeconds(int seconds)
public UnsignedIntegerFourBytes getCurrentSequence()
public Map<String,StateVariableValue<S>> getCurrentValues()
public abstract void established()
public abstract void eventReceived()
Copyright © 2023 jUPnP.org. All rights reserved.