Oracle® Fusion Middleware C++ API Reference for Oracle Coherence
14c (14.1.1.0.0)

F23533-01

AbstractProcessor Class Reference

#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.

List of all members.


Detailed Description

An AbstractProcessor is a partial EntryProcessor implementation that provides default implementations of the process and processAll methods.

For EntryProcessors which only run within the Coherence cluster (most common case), the C++ process and processAll methods can be left unimplemented.

Author:
tb 2008.04.28

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.

Parameters:
hEntry the Entry to process
Returns:
the result of the processing, if any

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;
 

Parameters:
vSetEntries a Set of InvocableMap::Entry objects to process
Returns:
a Map containing the results of the processing, up to one entry for each InvocableMap::Entry that was processed, keyed by the keys of the Map that were processed, with a corresponding value being the result of the processing for each key


Member Function Documentation

virtual Object::Holder process ( InvocableMap::Entry::Handle  hEntry  )  const [virtual]

Process a Map::Entry object.

Parameters:
hEntry the Entry to process
Returns:
the result of the processing, if any

This implementation throws an UnsupportedOperationException.

Since:
12.2.1.3

Implements InvocableMap::EntryProcessor.

Reimplemented in CompositeProcessor, ConditionalProcessor, ConditionalPut, ConditionalPutAll, ConditionalRemove, ExtractorProcessor, NumberIncrementor, NumberMultiplier, PreloadRequest, UpdaterProcessor, VersionedPut, and VersionedPutAll.


The documentation for this class was generated from the following file:
Copyright © 2000, 2020, Oracle and/or its affiliates. All rights reserved.