public abstract class CacheSerializableRunnable extends SerializableRunnable implements RepeatableRunnable
SerializableRunnable
class, but uses a run2() method instead that throws CacheException. This way, we don't need to have a lot of
try/catch code in the tests.| Modifier and Type | Class and Description |
|---|---|
static class |
CacheSerializableRunnable.CacheSerializableRunnableException
An exception that wraps a
CacheException |
| Constructor and Description |
|---|
CacheSerializableRunnable(String name)
Creates a new
CacheSerializableRunnable with the
given name |
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Invokes the
run2() method and will wrap any CacheException thrown by run2 in a CacheSerializableRunnable.CacheSerializableRunnableException. |
abstract void |
run2()
A
run method that may throw a
CacheException. |
void |
runRepeatingIfNecessary(long repeatTimeoutMs)
Invokes the
run() method. |
getName, setName, toStringpublic CacheSerializableRunnable(String name)
CacheSerializableRunnable with the
given namepublic final void run()
run2() method and will wrap any CacheException thrown by run2 in a CacheSerializableRunnable.CacheSerializableRunnableException.public final void runRepeatingIfNecessary(long repeatTimeoutMs)
run() method. If AssertionFailedError is thrown,
and repeatTimeoutMs is >0, then repeat the run() method until
it either succeeds or repeatTimeoutMs milliseconds have passed. The
AssertionFailedError is only thrown to the caller if the last run
still throws it.runRepeatingIfNecessary in interface RepeatableRunnablepublic abstract void run2()
throws com.gemstone.gemfire.cache.CacheException
run method that may throw a
CacheException.com.gemstone.gemfire.cache.CacheExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.