#include <coherence/util/processor/AbstractProcessor.hpp>
Inherits Describable, and InvocableMap::EntryProcessor.
Inherited by AbstractClusterProcessor, CompositeProcessor, ConditionalProcessor, ConditionalPut, ConditionalPutAll, ConditionalRemove, ExtractorProcessor, PreloadRequest, PropertyProcessor, UpdaterProcessor, VersionedPut, and VersionedPutAll.
For EntryProcessors which only run within the Coherence cluster (most common case), the C++ process and processAll methods can be left unimplemented.
Public Types | ||||
| typedef spec::Handle | Handle | |||
| AbstractProcessor Handle definition. | ||||
| typedef spec::View | View | |||
| AbstractProcessor View definition. | ||||
| typedef spec::Holder | Holder | |||
| AbstractProcessor Holder definition. | ||||
Public Member Functions | ||||
| virtual Object::Holder | process (InvocableMap::Entry::Handle hEntry) const | |||
| Process a Map::Entry object.
| ||||
| virtual Map::View | processAll (Set::View vSetEntries) const | |||
| 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;
| ||||
| virtual Object::Holder process | ( | InvocableMap::Entry::Handle | hEntry | ) | const [virtual] |
Process a Map::Entry object.
| hEntry | the Entry to process |
This implementation throws an UnsupportedOperationException.
Implements InvocableMap::EntryProcessor.
Reimplemented in CompositeProcessor, ConditionalProcessor, ConditionalPut, ConditionalPutAll, ConditionalRemove, ExtractorProcessor, NumberIncrementor, NumberMultiplier, PreloadRequest, UpdaterProcessor, VersionedPut, and VersionedPutAll.