Class QueueOverrideSettings

All Implemented Interfaces:
Serializable

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

  • Constructor Details

    • QueueOverrideSettings

      public QueueOverrideSettings()
  • Method Details

    • 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 String getId()
    • setId

      public void setId(String queueId)
    • getMaxOutstanding

      public 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(Integer maxOutstanding)
    • getPriority

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

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

      public String getName()
    • setName

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

      public String getDescription()
    • setDescr

      public void setDescr(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 Properties toProperties()
      Returns a Properties object with the actual override properties that we care about.