public class RetryingCacheInvoker extends Object implements CacheInvoker
CacheInvoker.Operation<K,V,R>
Constructor and Description |
---|
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)
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 <K,V,R> R invoke(org.infinispan.Cache<K,V> cache, CacheInvoker.Operation<K,V,R> operation)
invoke
in interface CacheInvoker
R
- the type of the cache operation resultcache
- an infinispan cacheoperation
- a cache operationCacheInvoker.invoke(org.infinispan.Cache, org.jboss.as.clustering.infinispan.invoker.CacheInvoker.Operation)
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.