#include <coherence/util/InvocableMap.hpp>
Inherits Object.
Inherited by AbstractProcessor [virtual]
, and PriorityProcessor [virtual]
.
Public Types | |
typedef spec::Handle | Handle |
EntryProcessor Handle definition. | |
typedef spec::View | View |
EntryProcessor View definition. | |
typedef spec::Holder | Holder |
EntryProcessor Holder definition. | |
Public Member Functions | |
virtual Object::Holder | process (Entry::Handle hEntry) const =0 |
Process a Map::Entry object. | |
virtual Map::View | processAll (Set::View vSetEntries) const =0 |
Process a Set of InvocableMap::Entry objects. |
virtual Object::Holder process | ( | Entry::Handle | hEntry | ) | const [pure virtual] |
Process a Map::Entry object.
hEntry | the Entry to process |
Implemented in AbstractClusterProcessor, CompositeProcessor, ConditionalProcessor, ConditionalPut, ConditionalPutAll, ConditionalRemove, ExtractorProcessor, NumberIncrementor, NumberMultiplier, PreloadRequest, PriorityProcessor, UpdaterProcessor, VersionedPut, and VersionedPutAll.
Process a Set of InvocableMap::Entry objects.
This method is semantically equivalent to:
Map::Handle hMapResults = HashMap::create(); for (Iterator::Handle hIter = vSetEntries->iterator(); iter->hasNext; ) { InvocableMap::Entry::Handle hEntry = cast<InvocableMap::Entry::Handle>(hIter->next()); hMapResults->put(hEntry->getKey(), process(hEntry)); } return hMapResults;
vSetEntries | a Set of InvocableMap::Entry objects to process |
Implemented in AbstractProcessor, ConditionalProcessor, ConditionalPut, ConditionalPutAll, ConditionalRemove, PreloadRequest, PriorityProcessor, VersionedPut, and VersionedPutAll.