com.hazelcast.cache.impl
Class CacheEntryProcessorResult<T>

java.lang.Object
  extended by com.hazelcast.cache.impl.CacheEntryProcessorResult<T>
Type Parameters:
T - the type of the return value.
All Implemented Interfaces:
javax.cache.processor.EntryProcessorResult<T>

public class CacheEntryProcessorResult<T>
extends Object
implements javax.cache.processor.EntryProcessorResult<T>

This simple implementation of EntryProcessorResult wraps the result returned or exception thrown in a single object so that multiple exceptions from multiple entry processes can be returned.

See Also:
Cache.invokeAll(java.util.Set, javax.cache.processor.EntryProcessor, Object...)

Constructor Summary
CacheEntryProcessorResult(T result)
           
CacheEntryProcessorResult(Throwable exception)
           
 
Method Summary
 T get()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheEntryProcessorResult

public CacheEntryProcessorResult(T result)

CacheEntryProcessorResult

public CacheEntryProcessorResult(Throwable exception)
Method Detail

get

public T get()
      throws javax.cache.processor.EntryProcessorException
Specified by:
get in interface javax.cache.processor.EntryProcessorResult<T>
Throws:
javax.cache.processor.EntryProcessorException


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.