Class QueueOverrideSettings

  • All Implemented Interfaces:
    java.io.Serializable

    public class QueueOverrideSettings
    extends PersistentRecord
    Allows a gateway network's hard-coded default queue settings to be overridden by the user.
    See Also:
    Serialized Form
    • Constructor Detail

      • QueueOverrideSettings

        public QueueOverrideSettings()
    • Method Detail

      • getMeta

        public RecordMeta<?> getMeta()
        Description copied from class: SRecordInstance
        This must be defined in every user record's definition to access the SRecord which provides the meta data for this instance. It is normally defined as:-

         SRecord getMeta() {
           return meta;
         };
         

        The actual meta variable is thus not Serialized, but it would not be anyway as it is usually static.

        Specified by:
        getMeta in class PersistentRecord
      • getId

        public java.lang.String getId()
      • setId

        public void setId​(java.lang.String queueId)
      • getMaxOutstanding

        public java.lang.Integer getMaxOutstanding()
        Returns:
        the maximum number of messages that can be in an outstanding state, that is, are being actively sent over the connection
      • setMaxOutstanding

        public void setMaxOutstanding​(java.lang.Integer maxOutstanding)
      • getPriority

        public com.inductiveautomation.metro.api.QueuePriority getPriority()
      • setPriority

        public void setPriority​(com.inductiveautomation.metro.api.QueuePriority priority)
      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
        Note: this field should be used to set an easily readable queue name, not the id!
      • getDescription

        public java.lang.String getDescription()
      • setDescr

        public void setDescr​(java.lang.String descr)
      • isSynchronous

        public boolean isSynchronous()
        Indicates whether the queue has been hard-coded in synchronous mode, meaning that another message cannot be dispatched until there are no outstanding messages.
      • setSynchronous

        public void setSynchronous​(boolean isSynchronous)
      • toProperties

        public java.util.Properties toProperties()
        Returns a Properties object with the actual override properties that we care about.