/// <summary>
 /// Initializes a new instance of the <see cref="TypeSettingStatus"/> class.
 /// </summary>
 public TypeSettingStatus()
 {
     MessageInfo           = new TypeSpecificMessageCountInfo();
     GatherStatistics      = true;
     BulkInMessageInfo     = new BulkMessageInfo();
     BulkOutMessageInfo    = new BulkMessageInfo();
     TTLSettingStatus      = new TTLSettingStatus();
     HydrationPolicyStatus = new HydrationPolicyStatus();
 }
Example #2
0
        /// <summary>
        /// Returns a copy of the <see cref="TypeSpecificMessageCountInfo"/> or null if no statistics were calculated.
        /// </summary>
        /// <returns>A copy of the <see cref="TypeSpecificMessageCountInfo"/> or null if no statistics were calculated.</returns>
        internal TypeSpecificMessageCountInfo GetStatus()
        {
            TypeSpecificMessageCountInfo info = null;

            if (this.MessageCount > 0)
            {
                info = this.Clone();
            }
            return(info);
        }
Example #3
0
        /// <summary>
        /// Creates a clone of this <see cref="TypeSpecificMessageCountInfo"/>.
        /// </summary>
        /// <returns>
        /// <para>A cloned <see cref="TypeSpecificMessageCountInfo"/> object that shares no object
        ///		references as this instance; never <see langword="null"/>.
        /// </para>
        /// </returns>
        internal TypeSpecificMessageCountInfo Clone()
        {
            TypeSpecificMessageCountInfo messageInfo = new TypeSpecificMessageCountInfo();

            messageInfo._messageCount       = _messageCount;
            messageInfo._averageMessageTime = _averageMessageTime;
            messageInfo._lastMessageTime    = _lastMessageTime;

            return(messageInfo);
        }