Package org.apache.activemq.filter
Class MessageEvaluationContext
- java.lang.Object
-
- org.apache.activemq.filter.MessageEvaluationContext
-
- Direct Known Subclasses:
NonCachedMessageEvaluationContext
public class MessageEvaluationContext extends Object
MessageEvaluationContext is used to cache selection results. A message usually has multiple selectors applied against it. Some selector have a high cost of evaluating against the message. Those selectors may whish to cache evaluation results associated with the message in the MessageEvaluationContext.
-
-
Field Summary
Fields Modifier and Type Field Description protected ActiveMQDestinationdestinationprotected booleandroppedprotected booleanloadedprotected Messagemessageprotected MessageReferencemessageReference
-
Constructor Summary
Constructors Constructor Description MessageEvaluationContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()protected voidclearMessageCache()A strategy hook to allow per-message caches to be clearedActiveMQDestinationgetDestination()MessagegetMessage()MessageReferencegetMessageReference()booleanisDropped()voidsetDestination(ActiveMQDestination destination)voidsetMessageReference(MessageReference messageReference)
-
-
-
Field Detail
-
messageReference
protected MessageReference messageReference
-
loaded
protected boolean loaded
-
dropped
protected boolean dropped
-
message
protected Message message
-
destination
protected ActiveMQDestination destination
-
-
Method Detail
-
isDropped
public boolean isDropped() throws IOException- Throws:
IOException
-
getMessage
public Message getMessage() throws IOException
- Throws:
IOException
-
setMessageReference
public void setMessageReference(MessageReference messageReference)
-
clear
public void clear()
-
getDestination
public ActiveMQDestination getDestination()
-
setDestination
public void setDestination(ActiveMQDestination destination)
-
clearMessageCache
protected void clearMessageCache()
A strategy hook to allow per-message caches to be cleared
-
getMessageReference
public MessageReference getMessageReference()
-
-