public class DiscoveryQos extends Object implements Serializable, JoynrType
| Modifier and Type | Field and Description |
|---|---|
static int |
MAJOR_VERSION |
static int |
MINOR_VERSION |
| Constructor and Description |
|---|
DiscoveryQos()
Default Constructor
|
DiscoveryQos(DiscoveryQos discoveryQosObj)
Copy constructor
|
DiscoveryQos(Long cacheMaxAge,
Long discoveryTimeout,
DiscoveryScope discoveryScope,
Boolean providerMustSupportOnChange)
Parameterized constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Check for equality
|
Long |
getCacheMaxAge()
Gets CacheMaxAge
|
DiscoveryScope |
getDiscoveryScope()
Gets DiscoveryScope
|
Long |
getDiscoveryTimeout()
Gets DiscoveryTimeout
|
Boolean |
getProviderMustSupportOnChange()
Gets ProviderMustSupportOnChange
|
int |
hashCode()
Calculate code for hashing based on member contents
|
void |
setCacheMaxAge(Long cacheMaxAge)
Sets CacheMaxAge
|
void |
setDiscoveryScope(DiscoveryScope discoveryScope)
Sets DiscoveryScope
|
void |
setDiscoveryTimeout(Long discoveryTimeout)
Sets DiscoveryTimeout
|
void |
setProviderMustSupportOnChange(Boolean providerMustSupportOnChange)
Sets ProviderMustSupportOnChange
|
String |
toString()
Stringifies the class
|
public static final int MAJOR_VERSION
public static final int MINOR_VERSION
public DiscoveryQos()
public DiscoveryQos(DiscoveryQos discoveryQosObj)
discoveryQosObj - reference to the object to be copiedpublic DiscoveryQos(Long cacheMaxAge, Long discoveryTimeout, DiscoveryScope discoveryScope, Boolean providerMustSupportOnChange)
cacheMaxAge - The maximum age of a cached entry in millisecondsdiscoveryTimeout - Discovery TTLdiscoveryScope - The discovery scope: at which level (GLOBAL/LOCAL) should providers be searched.providerMustSupportOnChange - True, if the provider is required to support the OnChange publicationpublic Long getCacheMaxAge()
public void setCacheMaxAge(Long cacheMaxAge)
cacheMaxAge - The maximum age of a cached entry in millisecondspublic Long getDiscoveryTimeout()
public void setDiscoveryTimeout(Long discoveryTimeout)
discoveryTimeout - Discovery TTLpublic DiscoveryScope getDiscoveryScope()
public void setDiscoveryScope(DiscoveryScope discoveryScope)
discoveryScope - The discovery scope: at which level (GLOBAL/LOCAL) should providers be searched.public Boolean getProviderMustSupportOnChange()
public void setProviderMustSupportOnChange(Boolean providerMustSupportOnChange)
providerMustSupportOnChange - True, if the provider is required to support the OnChange publicationpublic String toString()
public boolean equals(Object obj)
Copyright © 2021. All rights reserved.