public abstract class SubscriptionQos extends Object implements JoynrType
| Modifier and Type | Field and Description |
|---|---|
static int |
IGNORE_VALUE |
static long |
INFINITE_SUBSCRIPTION |
static long |
NO_EXPIRY_DATE
Expiry date value to disable expiration: 0L.
|
| Constructor and Description |
|---|
SubscriptionQos()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearExpiryDate()
Resets the expiry date to the default value 0L
(NO_EXPIRY_DATE).
|
boolean |
equals(Object obj)
Check for equality
|
long |
getExpiryDateMs()
Get the end date of the subscription.
|
int |
hashCode()
Calculate code for hashing based on member contents
|
SubscriptionQos |
setExpiryDateMs(long expiryDateMs)
Set the end date of the subscription, in milliseconds (since 1970-01-01T00:00:00.000 ).
|
SubscriptionQos |
setValidityMs(long validityMs)
Set how long the subscription should run for, in milliseconds.
|
public static final int IGNORE_VALUE
public static final long INFINITE_SUBSCRIPTION
public static final long NO_EXPIRY_DATE
public long getExpiryDateMs()
public SubscriptionQos setExpiryDateMs(long expiryDateMs)
expiryDateMs - is the end date of the subscription. public SubscriptionQos setValidityMs(long validityMs)
validityMs - is the number of milliseconds until the subscription will expirepublic void clearExpiryDate()
public int hashCode()
Copyright © 2021. All rights reserved.