public class RetryingCacheInvoker extends Object implements CacheInvoker
CacheInvoker.Operation<K,V,R>| Constructor and Description |
|---|
RetryingCacheInvoker(CacheInvoker invoker,
int... backOffIntervals) |
RetryingCacheInvoker(int... backOffIntervals)
Creates a new RetryingCacheInvoker.
|
| Modifier and Type | Method and Description |
|---|---|
<K,V,R> R |
invoke(org.infinispan.Cache<K,V> cache,
CacheInvoker.Operation<K,V,R> operation,
org.infinispan.context.Flag... allFlags)
Invokes the specified operation on the specified cache.
|
public RetryingCacheInvoker(int... backOffIntervals)
backOffIntervals - specifies the sleep intervals between retries, and implicitly, the number of retriespublic RetryingCacheInvoker(CacheInvoker invoker, int... backOffIntervals)
public <K,V,R> R invoke(org.infinispan.Cache<K,V> cache,
CacheInvoker.Operation<K,V,R> operation,
org.infinispan.context.Flag... allFlags)
invoke in interface CacheInvokerR - the type of the cache operation resultcache - an infinispan cacheoperation - a cache operationallFlags - an optional set of invocation flagsorg.jboss.as.clustering.infinispan.invoker.CacheInvoker#invoke(org.infinispan.Cache, org.jboss.as.clustering.infinispan.invoker.CacheInvoker.Operation)Copyright © 2014 JBoss by Red Hat. All rights reserved.