Package com.wombat.mama
Class MamaMsgQualifier
- java.lang.Object
-
- com.wombat.mama.MamaMsgQualifier
-
public class MamaMsgQualifier extends java.lang.ObjectThis class defines bit flags for the MamaMsgQualifier field values. Instances may also be used as a filter. Bits are queried and set using the set and get methods. Static fields exist for each possible bit.
-
-
Field Summary
Fields Modifier and Type Field Description static MamaMsgQualifierDEFINITELY_DELAYEDThe current message is definitely delayed.static MamaMsgQualifierDEFINITELY_DUPLICATEThe message is definitely a duplicate.static MamaMsgQualifierINVALIDThis bit is never set by the FH.static MamaMsgQualifierOUT_OF_SEQUENCEThe message is out of sequence.static MamaMsgQualifierPOSSIBLY_DELAYEDThe current message may be delayed.static MamaMsgQualifierPOSSIBLY_DUPLICATEThe message is possibly a duplicate.
-
Constructor Summary
Constructors Constructor Description MamaMsgQualifier()MamaMsgQualifier(MamaMsgQualifier qualifierFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfilter(short value)Return true if any bits in value match the bits set in this qualifier.booleangetIsDefinitelyDelayed()Return true if the message is delayed.booleangetIsDefinitelyDuplicate()Return true if this message is definitely a duplicate message.booleangetIsOutOfSequence()booleangetIsPossiblyDelayed()Return true if the message is possibly delayed.booleangetIsPossiblyDuplicate()Return true if this message is possibly a duplicate message.booleanisValid()voidsetInvalid(boolean value)set the invalid bidvoidsetIsDefinitelyDelayed(boolean value)Set the possibly delayed bit.voidsetIsDefinitelyDuplicate(boolean value)Set the definitely duplicate bit.voidsetIsPossiblyDelayed(boolean value)Set the possibly delayed bit.voidsetIsPossiblyDuplicate(boolean value)Set the possibly duplicate bit.voidsetOutOfSequence(boolean value)Set the possibly out of sequence bit.
-
-
-
Field Detail
-
POSSIBLY_DUPLICATE
public static final MamaMsgQualifier POSSIBLY_DUPLICATE
The message is possibly a duplicate. It may be possible to make an absolute determination by comparing wSeqNum and wSrcTime with the values in the previous message.
-
DEFINITELY_DUPLICATE
public static final MamaMsgQualifier DEFINITELY_DUPLICATE
The message is definitely a duplicate. Current feed handlers do not use this flag.
-
POSSIBLY_DELAYED
public static final MamaMsgQualifier POSSIBLY_DELAYED
The current message may be delayed.
-
DEFINITELY_DELAYED
public static final MamaMsgQualifier DEFINITELY_DELAYED
The current message is definitely delayed. This will be true during a fault tolerant takeover.
-
OUT_OF_SEQUENCE
public static final MamaMsgQualifier OUT_OF_SEQUENCE
The message is out of sequence.
-
INVALID
public static final MamaMsgQualifier INVALID
This bit is never set by the FH. It is a place holder to make this class more useful.
-
-
Constructor Detail
-
MamaMsgQualifier
public MamaMsgQualifier()
-
MamaMsgQualifier
public MamaMsgQualifier(MamaMsgQualifier qualifierFilter)
-
-
Method Detail
-
getIsDefinitelyDuplicate
public boolean getIsDefinitelyDuplicate()
Return true if this message is definitely a duplicate message. This condition will not occur with the current feed handlers.- Returns:
- true is a duplicate.
-
getIsPossiblyDuplicate
public boolean getIsPossiblyDuplicate()
Return true if this message is possibly a duplicate message. This may occur in the event of a fault tolerant feed handler take over where the feed handler replays messages to prevent gaps.- Returns:
- true if the message may be a duplicate.
-
getIsPossiblyDelayed
public boolean getIsPossiblyDelayed()
Return true if the message is possibly delayed. This condition may be true during a fault-tolerant take over.- Returns:
- true if the message may be delayed.
-
getIsDefinitelyDelayed
public boolean getIsDefinitelyDelayed()
Return true if the message is delayed. This condition may be true during a fault-tolerant take over.- Returns:
- true if the message is delayed
-
getIsOutOfSequence
public boolean getIsOutOfSequence()
- Returns:
- true when the FH sends the message out of sequence.
-
isValid
public boolean isValid()
- Returns:
- true if this instance is valid
-
setIsDefinitelyDuplicate
public void setIsDefinitelyDuplicate(boolean value)
Set the definitely duplicate bit.- Parameters:
value- for the bit .
-
setIsPossiblyDuplicate
public void setIsPossiblyDuplicate(boolean value)
Set the possibly duplicate bit.- Parameters:
value- for the bit .
-
setIsPossiblyDelayed
public void setIsPossiblyDelayed(boolean value)
Set the possibly delayed bit.- Parameters:
value- for the bit .
-
setIsDefinitelyDelayed
public void setIsDefinitelyDelayed(boolean value)
Set the possibly delayed bit.- Parameters:
value- for the bit .
-
setOutOfSequence
public void setOutOfSequence(boolean value)
Set the possibly out of sequence bit.- Parameters:
value- for the bit .
-
setInvalid
public void setInvalid(boolean value)
set the invalid bid- Parameters:
value- value to set
-
filter
public boolean filter(short value)
Return true if any bits in value match the bits set in this qualifier.- Parameters:
value- The value to filter.- Returns:
- true if there is a match
-
-