Version: 10.17.1
Namespace

solace.MessageUserCosType

Contents

namespace solace.MessageUserCosType

Represents an enumeration of user Class of Service (COS) levels. The COS is set on a Message with solace.Message#setUserCos The Class of Service has different semantics for direct and guaranteed messages.

For messages published with solace.MessageDeliveryModeType.DIRECT, the class of service selects the weighted round-robin delivery queue when the message is forwarded to a consumer. solace.MessageUserCosType.COS1 are the lowest priority messages and will use the Solace Message Router D-1 delivery queues.

For messages published as guaranteed messages (solace.MessageDeliveryModeType.PERSISTENT or solace.MessageDeliveryModeType.NON_PERSISTENT), messages published with solace.MessageUserCosType.COS1 can be rejected by the Solace Message Router if that message would cause any queue or topic-endpoint to exceed its configured low-priority-max-msg-count.

Static Properties & Enumerations Top

Number COS1
Number COS2 = 1
Number COS3 = 2

Static Properties & Enumerations Detail Top

static public Number COS1

Direct Messages: Lowest priority, use Solace Message Router client D-1 queues for delivery.

Guaranteed Messages: Messages can be rejected if the message would cause any queue or topic-endpoint to exceed its configured low-priority-max-msg-count.

static public Number COS2 = 1

Direct Messages: Medium priority, use Solace Message Router client D-2 queues for delivery.

Guaranteed Messages: N/A (same as COS3)

static public Number COS3 = 2

Direct Messages: Highest priority, use Solace Message Router client D-3 queues for delivery.

Guaranteed Messages: Messages are not rejected for exceeding low-priority-max-msg-count. Messages may still be rejected for other reasons such as Queue 'Spool Over Quota'.