org.apache.activemq.filter
Class MessageEvaluationContext
java.lang.Object
org.apache.activemq.filter.MessageEvaluationContext
public class MessageEvaluationContext
- extends java.lang.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.
- Version:
- $Revision: 1.4 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageEvaluationContext
public MessageEvaluationContext()
isDropped
public boolean isDropped()
throws java.io.IOException
- Throws:
java.io.IOException
getMessage
public Message getMessage()
throws java.io.IOException
- Throws:
java.io.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
Copyright © 2011 Apache Software Foundation. All Rights Reserved.