1 // pubsubplus-go-client 2 // 3 // Copyright 2021-2024 Solace Corporation. All rights reserved. 4 // 5 // Licensed under the Apache License, Version 2.0 (the "License"); 6 // you may not use this file except in compliance with the License. 7 // You may obtain a copy of the License at 8 // 9 // http://www.apache.org/licenses/LICENSE-2.0 10 // 11 // Unless required by applicable law or agreed to in writing, software 12 // distributed under the License is distributed on an "AS IS" BASIS, 13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 // See the License for the specific language governing permissions and 15 // limitations under the License. 16 // An interface for constant property values to define user message properties that have a special 17 // reserved meaning or behaviour. 18 19 package config 20 21 // MessageUserPropertyConstant is a property that can be set on a messages. 22 type MessageUserPropertyConstant = MessageProperty 23 24 const ( 25 // A standard property key that clients should use if they want to group messages. It is used to 26 // specify a partition queue name, when supported by a PubSub+ messaging broker. Expected value 27 // is UTF-8 encoded up to 255 bytes long string. This constant can be passed as the property 28 // string to any generic property setter on the OutboundMessageBuilder that takes properties from 29 // message_properties.go as a parameter, such as 30 // OutboundMessage.WithProperty(). 31 QueuePartitionKey = "JMSXGroupID" 32 ) 33