Package joynr.types

Class DiscoveryQos

    • 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 milliseconds
        discoveryTimeout - Discovery TTL
        discoveryScope - 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
        Overrides:
        toString in class Object
        Returns:
        stringified class content
      • equals

        public boolean equals​(Object obj)
        Check for equality
        Overrides:
        equals in class Object
        Parameters:
        obj - Reference to the object to compare to
        Returns:
        true, if objects are equal, false otherwise
      • hashCode

        public int hashCode()
        Calculate code for hashing based on member contents
        Overrides:
        hashCode in class Object
        Returns:
        The calculated hash code