CoherenceTM v3.4.1
Copyright© 2000-2008 by Oracle Corporation

com.tangosol.util.processor
Class AbstractProcessor

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.processor.AbstractProcessor
All Implemented Interfaces:
InvocableMap.EntryProcessor, java.io.Serializable
Direct Known Subclasses:
CompositeProcessor, ConditionalProcessor, ConditionalPut, ConditionalPutAll, ConditionalRemove, ExtractorProcessor, NullImplementation.NullEntryProcessor, PreloadRequest, PropertyProcessor, UpdaterProcessor, VersionedPut, VersionedPutAll

public abstract class AbstractProcessor
extends Base
implements InvocableMap.EntryProcessor

An AbstractProcessor is a partial EntryProcessor implementation that provides the default implementation of the processAll(java.util.Set) method.

Since:
Coherence 3.1
Author:
cp/jh 2005.07.19

Constructor Summary
AbstractProcessor()
           
 
Method Summary
 java.util.Map processAll(java.util.Set setEntries)
          Process a Set of InvocableMap.Entry objects.
 
Methods inherited from interface com.tangosol.util.InvocableMap.EntryProcessor
process
 

Constructor Detail

AbstractProcessor

public AbstractProcessor()
Method Detail

processAll

public java.util.Map processAll(java.util.Set setEntries)
Process a Set of InvocableMap.Entry objects. This method is semantically equivalent to:
   Map mapResults = new ListMap();
   for (Iterator iter = setEntries.iterator(); iter.hasNext(); )
       {
       Entry entry = (Entry) iter.next();
       mapResults.put(entry.getKey(), process(entry));
       }
   return mapResults;
 

Specified by:
processAll in interface InvocableMap.EntryProcessor
Parameters:
setEntries - a read-only 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

CoherenceTM v3.4.1
Copyright© 2000-2008 by Oracle Corporation