|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.ActiveMQMessageAudit
public class ActiveMQMessageAudit
Provides basic audit functions for Messages
Field Summary | |
---|---|
static int |
DEFAULT_WINDOW_SIZE
|
static int |
MAXIMUM_PRODUCER_COUNT
|
Constructor Summary | |
---|---|
ActiveMQMessageAudit()
Default Constructor windowSize = 2048, maximumNumberOfProducersToTrack = 64 |
|
ActiveMQMessageAudit(int auditDepth,
int maximumNumberOfProducersToTrack)
Construct a MessageAudit |
Method Summary | |
---|---|
int |
getAuditDepth()
|
int |
getMaximumNumberOfProducersToTrack()
|
boolean |
isDuplicate(Message message)
Checks if this message has been seen before |
boolean |
isDuplicate(MessageId id)
Checks if this messageId has been seen before |
boolean |
isDuplicate(MessageReference message)
Checks if this message has been seen before |
boolean |
isDuplicate(String id)
checks whether this messageId has been seen before and adds this messageId to the list |
boolean |
isInOrder(Message msg)
Check the message is in order |
boolean |
isInOrder(MessageId id)
Check the MessageId is in order |
boolean |
isInOrder(MessageReference message)
Check the MessageId is in order |
boolean |
isInOrder(String id)
Check the message id is in order |
void |
rollback(MessageId id)
mark this message as being received |
void |
rollback(MessageReference message)
mark this message as being received |
void |
setAuditDepth(int auditDepth)
|
void |
setMaximumNumberOfProducersToTrack(int maximumNumberOfProducersToTrack)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_WINDOW_SIZE
public static final int MAXIMUM_PRODUCER_COUNT
Constructor Detail |
---|
public ActiveMQMessageAudit()
public ActiveMQMessageAudit(int auditDepth, int maximumNumberOfProducersToTrack)
auditDepth
- range of ids to trackmaximumNumberOfProducersToTrack
- number of producers expected in
the systemMethod Detail |
---|
public int getAuditDepth()
public void setAuditDepth(int auditDepth)
auditDepth
- the auditDepth to setpublic int getMaximumNumberOfProducersToTrack()
public void setMaximumNumberOfProducersToTrack(int maximumNumberOfProducersToTrack)
maximumNumberOfProducersToTrack
- the maximumNumberOfProducersToTrack to setpublic boolean isDuplicate(Message message) throws JMSException
message
-
JMSException
public boolean isDuplicate(String id)
id
-
public boolean isDuplicate(MessageReference message)
message
-
public boolean isDuplicate(MessageId id)
id
-
public void rollback(MessageReference message)
message
- public void rollback(MessageId id)
id
- public boolean isInOrder(Message msg) throws JMSException
msg
-
JMSException
public boolean isInOrder(String id)
id
-
public boolean isInOrder(MessageReference message)
message
-
public boolean isInOrder(MessageId id)
id
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |