Class QueueOverrideSettings
java.lang.Object
simpleorm.dataset.SRecordInstance
com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
com.inductiveautomation.ignition.gateway.gan.QueueOverrideSettings
- All Implemented Interfaces:
Serializable
Allows a gateway network's hard-coded default queue settings to be overridden by the user.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class simpleorm.dataset.SRecordInstance
SRecordInstance.BrokenOptimisticLockException
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringField
static final StringField
static final BooleanField
static final IntField
static final RecordMeta<QueueOverrideSettings>
static final StringField
static final EnumField<com.inductiveautomation.metro.api.QueuePriority>
Fields inherited from class com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
DEFAULT_VALUE, FORM_META_KEY, INDEXED, UNIQUE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()
RecordMeta<?>
getMeta()
This must be defined in every user record's definition to access the SRecord which provides the meta data for this instance.getName()
com.inductiveautomation.metro.api.QueuePriority
boolean
Indicates whether the queue has been hard-coded in synchronous mode, meaning that another message cannot be dispatched until there are no outstanding messages.void
void
void
setMaxOutstanding
(Integer maxOutstanding) void
Note: this field should be used to set an easily readable queue name, not the id!void
setPriority
(com.inductiveautomation.metro.api.QueuePriority priority) void
setSynchronous
(boolean isSynchronous) Returns a Properties object with the actual override properties that we care about.Methods inherited from class com.inductiveautomation.ignition.gateway.localdb.persistence.PersistentRecord
getBoolean, getDoubleObj, getIntObj, getLongObj, getString, installDefaultValues
Methods inherited from class simpleorm.dataset.SRecordInstance
allFields, assertNewRow, assertNotNewRow, defineInitialValue, deleteRecord, doQueryRecord, doValidateRecord, equals, findReference, findReference, findReference, findReference, getBigDecimal, getBytes, getDataSet, getDate, getDouble, getEnum, getInitialValue, getInt, getLogger, getLong, getObject, getRawArrayValue, getReferenceNoQuery, getTime, getTimestamp, hashCode, isAttached, isDeleted, isDirty, isDirty, isEmpty, isNewRow, isNotDestroyed, isNull, isReadOnly, isValid, onQueryRecord, onValidateField, onValidateRecord, setBigDecimal, setBoolean, setBytes, setDate, setDirty, setDouble, setEmpty, setEnum, setInt, setLong, setNewRow, setNull, setObject, setObject, setRawArrayValue, setReadOnly, setReference, setString, setTime, setTimestamp, toString, validatePrimaryKeys, wasInCache
-
Field Details
-
META
-
ID
-
NAME
-
DESCR
-
IS_SYNCHRONOUS
-
MAX_OUTSTANDING
-
PRIORITY
-
-
Constructor Details
-
QueueOverrideSettings
public QueueOverrideSettings()
-
-
Method Details
-
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 classPersistentRecord
-
getId
-
setId
-
getMaxOutstanding
- Returns:
- the maximum number of messages that can be in an outstanding state, that is, are being actively sent over the connection
-
setMaxOutstanding
-
getPriority
public com.inductiveautomation.metro.api.QueuePriority getPriority() -
setPriority
public void setPriority(com.inductiveautomation.metro.api.QueuePriority priority) -
getName
-
setName
Note: this field should be used to set an easily readable queue name, not the id! -
getDescription
-
setDescr
-
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
Returns a Properties object with the actual override properties that we care about.
-