Package joynr.types
Class DiscoveryQos
- java.lang.Object
-
- joynr.types.DiscoveryQos
-
- All Implemented Interfaces:
JoynrType,Serializable
public class DiscoveryQos extends Object implements Serializable, JoynrType
Discovery quality of service settings- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intMAJOR_VERSIONstatic intMINOR_VERSION
-
Constructor Summary
Constructors Constructor Description DiscoveryQos()Default ConstructorDiscoveryQos(Long cacheMaxAge, Long discoveryTimeout, DiscoveryScope discoveryScope, Boolean providerMustSupportOnChange)Parameterized constructorDiscoveryQos(DiscoveryQos discoveryQosObj)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Check for equalityLonggetCacheMaxAge()Gets CacheMaxAgeDiscoveryScopegetDiscoveryScope()Gets DiscoveryScopeLonggetDiscoveryTimeout()Gets DiscoveryTimeoutBooleangetProviderMustSupportOnChange()Gets ProviderMustSupportOnChangeinthashCode()Calculate code for hashing based on member contentsvoidsetCacheMaxAge(Long cacheMaxAge)Sets CacheMaxAgevoidsetDiscoveryScope(DiscoveryScope discoveryScope)Sets DiscoveryScopevoidsetDiscoveryTimeout(Long discoveryTimeout)Sets DiscoveryTimeoutvoidsetProviderMustSupportOnChange(Boolean providerMustSupportOnChange)Sets ProviderMustSupportOnChangeStringtoString()Stringifies the class
-
-
-
Field Detail
-
MAJOR_VERSION
public static final int MAJOR_VERSION
- See Also:
- Constant Field Values
-
MINOR_VERSION
public static final int MINOR_VERSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DiscoveryQos
public DiscoveryQos()
Default Constructor
-
DiscoveryQos
public DiscoveryQos(DiscoveryQos discoveryQosObj)
Copy constructor- Parameters:
discoveryQosObj- reference to the object to be copied
-
DiscoveryQos
public DiscoveryQos(Long cacheMaxAge, Long discoveryTimeout, DiscoveryScope discoveryScope, Boolean providerMustSupportOnChange)
Parameterized constructor- Parameters:
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 publication
-
-
Method Detail
-
getCacheMaxAge
public Long getCacheMaxAge()
Gets CacheMaxAge- Returns:
- The maximum age of a cached entry in milliseconds
-
setCacheMaxAge
public void setCacheMaxAge(Long cacheMaxAge)
Sets CacheMaxAge- Parameters:
cacheMaxAge- The maximum age of a cached entry in milliseconds
-
getDiscoveryTimeout
public Long getDiscoveryTimeout()
Gets DiscoveryTimeout- Returns:
- Discovery TTL
-
setDiscoveryTimeout
public void setDiscoveryTimeout(Long discoveryTimeout)
Sets DiscoveryTimeout- Parameters:
discoveryTimeout- Discovery TTL
-
getDiscoveryScope
public DiscoveryScope getDiscoveryScope()
Gets DiscoveryScope- Returns:
- The discovery scope: at which level (GLOBAL/LOCAL) should providers be searched.
-
setDiscoveryScope
public void setDiscoveryScope(DiscoveryScope discoveryScope)
Sets DiscoveryScope- Parameters:
discoveryScope- The discovery scope: at which level (GLOBAL/LOCAL) should providers be searched.
-
getProviderMustSupportOnChange
public Boolean getProviderMustSupportOnChange()
Gets ProviderMustSupportOnChange- Returns:
- True, if the provider is required to support the OnChange publication
-
setProviderMustSupportOnChange
public void setProviderMustSupportOnChange(Boolean providerMustSupportOnChange)
Sets ProviderMustSupportOnChange- Parameters:
providerMustSupportOnChange- True, if the provider is required to support the OnChange publication
-
toString
public String toString()
Stringifies the class
-
equals
public boolean equals(Object obj)
Check for equality
-
-