#include <coherence/util/filter/PriorityFilter.hpp>
Inherits AbstractPriorityTask.
For example, let's assume that there is a cache that belongs to a partitioned cache service configured with a request-timeout and task-timeout of 5 seconds. Also assume that we are willing to wait longer for a particular rarely executed parallel query that does not employ any indexes. Then we could override the default timeout values by using the PriorityFilter as follows:
EqualsFilter::Handle hFilterStandard = LikeFilter::create("getComments", "%fail%"); PriorityFilter::Handle hFilterPriority = PriorityFilter::create(hFilterStandard); hFilterPriority->setExecutionTimeoutMillis(PriorityTask::timeout_none); hFilterPriority->setRequestTimeoutMillis(PriorityTask::timeout_none); Set::View vSetEntries = hCache->entrySet(hFilterPriority);
This is an advanced feature which should be used judiciously.
Public Types | |
typedef spec::Handle | Handle |
PriorityFilter Handle definition. | |
typedef spec::View | View |
PriorityFilter View definition. | |
typedef spec::Holder | Holder |
PriorityFilter Holder definition. | |
Public Member Functions | |
virtual bool | evaluateEntry (Map::Entry::View vEntry) const |
virtual bool | evaluate (Object::View v) const |
virtual size32_t | calculateEffectiveness (Map::View vMapIndexes, Set::View vSetKeys) const |
virtual Filter::View | applyIndex (Map::View vMapIndexes, Set::Handle hSetKeys) const |
virtual void | readExternal (PofReader::Handle hIn) |
virtual void | writeExternal (PofWriter::Handle hOut) const |
virtual TypedHandle < const String > | toString () const |
virtual IndexAwareFilter::View | getFilter () const |
Obtain the underlying filter. | |
Protected Member Functions | |
PriorityFilter () | |
Default constructor (necessary for the PortableObject interface). | |
PriorityFilter (IndexAwareFilter::View vFilter) | |
Construct a PriorityFilter. | |
Protected Attributes | |
FinalView < IndexAwareFilter > | f_vFilter |
The wrapped filter. |
PriorityFilter | ( | IndexAwareFilter::View | vFilter | ) | [protected] |
virtual IndexAwareFilter::View getFilter | ( | ) | const [virtual] |