Package com.wombat.mama
Class MamaMsgStatus
- java.lang.Object
-
- com.wombat.mama.MamaMsgStatus
-
public class MamaMsgStatus extends java.lang.Object
Utility class for interpreting Mama message status.
-
-
Field Summary
Fields Modifier and Type Field Description static short
STATUS_BAD_SYMBOL
The symbol does not existstatic short
STATUS_BANDWIDTH_EXCEEDED
Bandwidth exceededstatic short
STATUS_DELETE
Message with the type of DELETEstatic short
STATUS_DUPLICATE
Message with duplicate sequence numberstatic short
STATUS_EXCEPTION
static short
STATUS_EXPIRED
Expiredstatic short
STATUS_LINE_DOWN
The feed handler has detected a Line Down.static short
STATUS_MISC
Miscellaneous status.static short
STATUS_NO_SUBSCRIBERS
The feed handler does not have any subscribers to the subjectstatic short
STATUS_NOT_ENTITLED
Not entitled to a subjectstatic short
STATUS_NOT_FOUND
Not foundstatic short
STATUS_NOT_PERMISSIONED
Not permissioned for the subjectstatic short
STATUS_OK
OKstatic short
STATUS_PLATFORM_STATUS
Error in the underlying messaging APIstatic short
STATUS_POSSIBLY_STALE
Messages may have been droppedstatic short
STATUS_STALE
The subject is stale.static short
STATUS_TIBRV_STATUS
static short
STATUS_TIMEOUT
A time out occurredstatic short
STATUS_TOPIC_CHANGE
Topic renamed
-
Constructor Summary
Constructors Constructor Description MamaMsgStatus()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
statusForMsg(MamaMsg msg)
Extract the status from the supplied message.static java.lang.String
stringForStatus(int type)
Return a text description of the message's status.static java.lang.String
stringForStatus(MamaMsg msg)
Return the status as a string given anMamaMsg
message.
-
-
-
Field Detail
-
STATUS_OK
public static final short STATUS_OK
OK- See Also:
- Constant Field Values
-
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_EXPIRED
public static final short STATUS_EXPIRED
Expired- 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_TIBRV_STATUS
public static final short STATUS_TIBRV_STATUS
- 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_NOT_FOUND
public static final short STATUS_NOT_FOUND
Not found- 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
-
STATUS_EXCEPTION
public static final short STATUS_EXCEPTION
- See Also:
- Constant Field Values
-
-
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 anMamaMsg
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.
-
-