Apache.NMS.ActiveMQ.Commands.MessageId.SetValue C# (CSharp) Method

SetValue() public method

Sets the value as a String
public SetValue ( string messageKey ) : void
messageKey string
return void
        public void SetValue(string messageKey)
        {
            this.key = messageKey;

            // Parse off the sequenceId
            int p = messageKey.LastIndexOf(":");
            if(p >= 0)
            {
                producerSequenceId = Int64.Parse(messageKey.Substring(p + 1));
                messageKey = messageKey.Substring(0, p);
            }
            producerId = new ProducerId(messageKey);
        }