Class MamaQuality


  • public class MamaQuality
    extends java.lang.Object
    Class containing constants and utility methods for dealing with subscription level quality events.
    • Constructor Summary

      Constructors 
      Constructor Description
      MamaQuality()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String toString​(short quality)
      Get a stringified representation of the quality.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • QUALITY_OK

        public static final short QUALITY_OK
        The quality of the subscription is ok. The integrity of the data can be guaranteed.
        See Also:
        Constant Field Values
      • QUALITY_MAYBE_STALE

        public static final short QUALITY_MAYBE_STALE
        The quality of the subscription is possibly stale. The integrity of the data must be treated as suspect. The middleware has informed MAMA that data is being lost but a gap has not yet been detected.
        See Also:
        Constant Field Values
      • QUALITY_STALE

        public static final short QUALITY_STALE
        The quality of the subscription is stale. A gap has been detected in the message stream. The integrity of the data has been compromised. Data should be treated as invalid until a recap is received.
        See Also:
        Constant Field Values
      • QUALITY_PARTIAL_STALE

        public static final short QUALITY_PARTIAL_STALE
        As with QUALITY_MAYBE_STALE
        See Also:
        Constant Field Values
      • QUALITY_DUPLICATE

        public static final short QUALITY_DUPLICATE
        Messages with duplicate sequence numbers have been received for the subscription.
        See Also:
        Constant Field Values
      • QUALITY_UNKNOWN

        public static final short QUALITY_UNKNOWN
        Invalid quality state value.
        See Also:
        Constant Field Values
    • Constructor Detail

      • MamaQuality

        public MamaQuality()
    • Method Detail

      • toString

        public static java.lang.String toString​(short quality)
        Get a stringified representation of the quality.
        Parameters:
        quality - A valid quality short value.
        Returns:
        The string representation of the quality.