Interface IEntryProcessor
An invocable agent that operates against the entry objects within a cache.
Namespace: Tangosol.Net.Cache
Assembly: Coherence.dll
Syntax
public interface IEntryProcessor
Methods
Process(IInvocableCacheEntry)
Process an IInvocableCacheEntry.
Declaration
object Process(IInvocableCacheEntry entry)
Parameters
| Type | Name | Description |
|---|---|---|
| IInvocableCacheEntry | entry | The IInvocableCacheEntry to process. |
Returns
| Type | Description |
|---|---|
| object | The result of the processing, if any. |
ProcessAll(ICollection)
Process a collection of IInvocableCacheEntry objects.
Declaration
IDictionary ProcessAll(ICollection entries)
Parameters
| Type | Name | Description |
|---|---|---|
| ICollection | entries | A collection of IInvocableCacheEntry objects to process. |
Returns
| Type | Description |
|---|---|
| IDictionary | A dictionary containing the results of the processing, up to one entry for each IInvocableCacheEntry that was processed, keyed by the keys of the dictionary that were processed, with a corresponding value being the result of the processing for each key. |
Remarks
This method is semantically equivalent to:
IDictionary results = new Hashtable();
foreach (IInvocableCacheEntry entry in entries)
{
results[entry.Key] = Process(entry);
}
return results;