Package joynr.types

Class ProviderQos

    • Constructor Detail

      • ProviderQos

        public ProviderQos()
        Default Constructor
      • ProviderQos

        public ProviderQos​(ProviderQos providerQosObj)
        Copy constructor
        Parameters:
        providerQosObj - reference to the object to be copied
      • ProviderQos

        public ProviderQos​(CustomParameter[] customParameters,
                           Long priority,
                           ProviderScope scope,
                           Boolean supportsOnChangeSubscriptions)
        Parameterized constructor
        Parameters:
        customParameters - the list of Provider-Specific and InterfaceSpecific QoS Parameters
        priority - the priority value of the provider used for discovery
        scope - the scope of the provider (e.g. if it is to be used only with the local cluster controller)
        supportsOnChangeSubscriptions - true, if the provider supports onChangeSubscriptions, false otherwise
    • Method Detail

      • getCustomParameters

        public CustomParameter[] getCustomParameters()
        Gets CustomParameters
        Returns:
        the list of Provider-Specific and InterfaceSpecific QoS Parameters
      • setCustomParameters

        public void setCustomParameters​(CustomParameter[] customParameters)
        Sets CustomParameters
        Parameters:
        customParameters - the list of Provider-Specific and InterfaceSpecific QoS Parameters
      • getPriority

        public Long getPriority()
        Gets Priority
        Returns:
        the priority value of the provider used for discovery
      • setPriority

        public void setPriority​(Long priority)
        Sets Priority
        Parameters:
        priority - the priority value of the provider used for discovery
      • getScope

        public ProviderScope getScope()
        Gets Scope
        Returns:
        the scope of the provider (e.g. if it is to be used only with the local cluster controller)
      • setScope

        public void setScope​(ProviderScope scope)
        Sets Scope
        Parameters:
        scope - the scope of the provider (e.g. if it is to be used only with the local cluster controller)
      • getSupportsOnChangeSubscriptions

        public Boolean getSupportsOnChangeSubscriptions()
        Gets SupportsOnChangeSubscriptions
        Returns:
        true, if the provider supports onChangeSubscriptions, false otherwise
      • setSupportsOnChangeSubscriptions

        public void setSupportsOnChangeSubscriptions​(Boolean supportsOnChangeSubscriptions)
        Sets SupportsOnChangeSubscriptions
        Parameters:
        supportsOnChangeSubscriptions - true, if the provider supports onChangeSubscriptions, false otherwise
      • 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