Class MamaMsgStatus


  • public class MamaMsgStatus
    extends java.lang.Object
    Utility class for interpreting Mama message status.
    • Field Detail

      • STATUS_LINE_DOWN

        public static final short STATUS_LINE_DOWN
        The feed handler has detected a Line Down.
        See Also:
        Constant Field Values
      • STATUS_NO_SUBSCRIBERS

        public static final short STATUS_NO_SUBSCRIBERS
        The feed handler does not have any subscribers to the subject
        See Also:
        Constant Field Values
      • STATUS_BAD_SYMBOL

        public static final short STATUS_BAD_SYMBOL
        The symbol does not exist
        See Also:
        Constant Field Values
      • STATUS_TIMEOUT

        public static final short STATUS_TIMEOUT
        A time out occurred
        See Also:
        Constant Field Values
      • STATUS_MISC

        public static final short STATUS_MISC
        Miscellaneous status. Not an error
        See Also:
        Constant Field Values
      • STATUS_STALE

        public static final short STATUS_STALE
        The subject is stale. Messages may have been dropped
        See Also:
        Constant Field Values
      • STATUS_PLATFORM_STATUS

        public static final short STATUS_PLATFORM_STATUS
        Error in the underlying messaging API
        See Also:
        Constant Field Values
      • STATUS_NOT_ENTITLED

        public static final short STATUS_NOT_ENTITLED
        Not entitled to a subject
        See Also:
        Constant Field Values
      • STATUS_POSSIBLY_STALE

        public static final short STATUS_POSSIBLY_STALE
        Messages may have been dropped
        See Also:
        Constant Field Values
      • STATUS_NOT_PERMISSIONED

        public static final short STATUS_NOT_PERMISSIONED
        Not permissioned for the subject
        See Also:
        Constant Field Values
      • STATUS_TOPIC_CHANGE

        public static final short STATUS_TOPIC_CHANGE
        Topic renamed
        See Also:
        Constant Field Values
      • STATUS_BANDWIDTH_EXCEEDED

        public static final short STATUS_BANDWIDTH_EXCEEDED
        Bandwidth exceeded
        See Also:
        Constant Field Values
      • STATUS_DUPLICATE

        public static final short STATUS_DUPLICATE
        Message with duplicate sequence number
        See Also:
        Constant Field Values
      • STATUS_DELETE

        public static final short STATUS_DELETE
        Message with the type of DELETE
        See Also:
        Constant Field Values
    • Constructor Detail

      • MamaMsgStatus

        public MamaMsgStatus()
    • Method Detail

      • statusForMsg

        public static int statusForMsg​(MamaMsg msg)
        Extract the status from the supplied message.
        Parameters:
        msg -
      • stringForStatus

        public static java.lang.String stringForStatus​(MamaMsg msg)
        Return the status as a string given an MamaMsg message.
        Returns:
        The string.
      • stringForStatus

        public static java.lang.String stringForStatus​(int type)
        Return a text description of the message's status.
        Returns:
        The description.