Package org.apache.activemq.filter
Class MessageEvaluationContext
java.lang.Object
org.apache.activemq.filter.MessageEvaluationContext
- Direct Known Subclasses:
NonCachedMessageEvaluationContext
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
FieldsModifier and TypeFieldDescriptionprotected ActiveMQDestination
protected boolean
protected boolean
protected Message
protected MessageReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
protected void
A strategy hook to allow per-message caches to be clearedboolean
void
setDestination
(ActiveMQDestination destination) void
setMessageReference
(MessageReference messageReference)
-
Field Details
-
messageReference
-
loaded
protected boolean loaded -
dropped
protected boolean dropped -
message
-
destination
-
-
Constructor Details
-
MessageEvaluationContext
public MessageEvaluationContext()
-
-
Method Details
-
isDropped
- Throws:
IOException
-
getMessage
- Throws:
IOException
-
setMessageReference
-
clear
public void clear() -
getDestination
-
setDestination
-
clearMessageCache
protected void clearMessageCache()A strategy hook to allow per-message caches to be cleared -
getMessageReference
-