|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.icegem.utils.CacheUtils
public class CacheUtils
Help class for common operations with regions.
| Constructor Summary | |
|---|---|
CacheUtils()
|
|
| Method Summary | ||
|---|---|---|
static String |
addQueryLimit(String queryString,
int queryLimit)
Limits query results. |
|
static void |
clearRegion(com.gemstone.gemfire.cache.Region<?,?> region)
Clears all types of regions. |
|
static String[] |
getFirstLocatorFromLocatorsString(String locatorsString)
Returns first locator host and port from locators string. |
|
static int |
getRegionSize(com.gemstone.gemfire.cache.Region<?,?> region)
|
|
static
|
retryWithExponentialBackoff(Retryable<T> runnable,
int maxRetries)
Retries passed operation with random exponential back off delay. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CacheUtils()
| Method Detail |
|---|
public static String addQueryLimit(String queryString,
int queryLimit)
queryString - Query string.
public static String[] getFirstLocatorFromLocatorsString(String locatorsString)
locatorsString - of type String
public static void clearRegion(com.gemstone.gemfire.cache.Region<?,?> region)
region - partitioned regionpublic static int getRegionSize(com.gemstone.gemfire.cache.Region<?,?> region)
region - Region.
public static <T> T retryWithExponentialBackoff(Retryable<T> runnable,
int maxRetries)
throws InterruptedException,
OperationRetryFailedException
T - Type of returned value.runnable - the operation.maxRetries - the maximum number of retries.
OperationRetryFailedException
InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||