com.seeq.message.SeeqMessageNumbers.kt Maven / Gradle / Ivy
package com.seeq.message
/** Reserve ranges of message numbers for different subsystems. This allows subsystems to declare their own
* enumerations of numbers without turning this module into a hotspot, all while maintaining global uniqueness.
*
* Each subsystem should use SeeqMessageNumbersUtils.assertRange on its Enum of numbers to make sure they are
* in range unique.
*
* Numbers should always be positive. The value of 0 is reserved for Unknown
*
* Don't be greedy - reserve up to 1000 so that the numbers stay memorable. We want users and the KB to say things
* like "error SQ-1503".
*/
object SeeqMessageNumbers {
/** Used by Seeq Formula and the compute service */
val formula: IntRange = 100..999
/** Used by Agents, Connector SDK and first-party Connectors */
val agent: IntRange = 1_000..4_999
}