Public Member Functions | List of all members
GridGain.Cache.ICacheEntryProcessor< in in K, V, in in A, out out R > Interface Template Reference

An invocable function that allows applications to perform compound operations on a cache entry atomically, according the defined consistency of a cache. More...

Public Member Functions

R Process (IMutableCacheEntry< K, V > entry, A arg)
 Process an entry. More...
 

Detailed Description

Any cache entry mutations will not take effect until after the Process method has completedS execution.

If an exception is thrown by an entry processor, a Caching Implementation must wrap any exception thrown wrapped in an CacheEntryProcessorException If this occurs no mutations will be made to the cache entry.

Template Parameters
KThe type of the cache key.
VThe type of the cache value.
AThe type of the processor argument.
RThe type of the processor result.

Member Function Documentation

R GridGain.Cache.ICacheEntryProcessor< in in K, V, in in A, out out R >.Process ( IMutableCacheEntry< K, V >  entry,
A  arg 
)
Parameters
entryThe entry to process.
argThe argument.
Returns
Processing result.