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> TCallscallable.call()until it does not throw an exception (but no more thanretriestimes).static <T> TCallscallable.call()until it does not throw an exception (but no more thanretriestimes).
-
Method Details
-
retry
Callscallable.call()until it does not throw an exception (but no more thanretriestimes).Note that
callableshould be an idempotent operation.If
callablethrows an unchecked exception, it is wrapped intoHazelcastException. -
retry
Callscallable.call()until it does not throw an exception (but no more thanretriestimes).Note that
callableshould be an idempotent operation.If
callablethrows an unchecked exception, it is wrapped intoHazelcastException.
-