Package com.hazelcast.spi.utils
Class RetryUtils
java.lang.Object
com.hazelcast.spi.utils.RetryUtils
Static utility class to retry operations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
Callscallable.call()
until it does not throw an exception (but no more thanretries
times).static <T> T
Callscallable.call()
until it does not throw an exception (but no more thanretries
times).
-
Method Details
-
retry
Callscallable.call()
until it does not throw an exception (but no more thanretries
times).Note that
callable
should be an idempotent operation.If
callable
throws an unchecked exception, it is wrapped intoHazelcastException
. -
retry
Callscallable.call()
until it does not throw an exception (but no more thanretries
times).Note that
callable
should be an idempotent operation.If
callable
throws an unchecked exception, it is wrapped intoHazelcastException
.
-