跳过导航链接
A B C E F G H I J N O P R S T W 

A

assertNotNull(T) - 类 中的静态方法com.github.lowzj.retry.Preconditions
 
assertNotNull(T, Object) - 类 中的静态方法com.github.lowzj.retry.Preconditions
 
AsyncRetryer<V> - com.github.lowzj.retry中的类
Created on 2018/2/11
Attempt<V> - com.github.lowzj.retry.attempt中的接口
An attempt of a call, which resulted either in a result returned by the call, or in a Throwable thrown by the call.
AttemptTimeLimiter<V> - com.github.lowzj.retry中的接口
A rule to wrap any single attempt in a time limit, where it will possibly be interrupted if the limit is exceeded.
AttemptTimeLimiters - com.github.lowzj.retry中的类
Factory class for instances of AttemptTimeLimiter

B

block(long) - 接口 中的方法com.github.lowzj.retry.BlockStrategy
Attempt to block for the designated amount of time.
BlockStrategies - com.github.lowzj.retry中的类
Factory class for BlockStrategy instances.
BlockStrategy - com.github.lowzj.retry中的接口
This is a strategy used to decide how a retryer should block between retry attempts.
build() - 类 中的方法com.github.lowzj.retry.RetryerBuilder
Builds the retryer.
buildAsyncRetryer() - 类 中的方法com.github.lowzj.retry.RetryerBuilder
 

C

call(Callable<V>) - 类 中的方法com.github.lowzj.retry.AsyncRetryer
 
call(Callable<V>) - 接口 中的方法com.github.lowzj.retry.AttemptTimeLimiter
 
call(Callable<V>) - 类 中的方法com.github.lowzj.retry.Retryer
Executes the given callable.
call() - 类 中的方法com.github.lowzj.retry.Retryer.RetryerCallable
Makes the enclosing retryer call the wrapped callable.
checkArgument(boolean, String, Object...) - 类 中的静态方法com.github.lowzj.retry.Preconditions
 
checkNotNull(T, Object) - 类 中的静态方法com.github.lowzj.retry.Preconditions
 
checkState(boolean, Object) - 类 中的静态方法com.github.lowzj.retry.Preconditions
 
checkState(boolean, String, Object) - 类 中的静态方法com.github.lowzj.retry.Preconditions
 
com.github.lowzj.retry - 程序包 com.github.lowzj.retry
 
com.github.lowzj.retry.attempt - 程序包 com.github.lowzj.retry.attempt
 
com.github.lowzj.retry.predicate - 程序包 com.github.lowzj.retry.predicate
 
computeSleepTime(Attempt) - 接口 中的方法com.github.lowzj.retry.WaitStrategy
Returns the time, in milliseconds, to sleep before retrying.

E

ExceptionAttempt<R> - com.github.lowzj.retry.attempt中的类
Created on 2018/2/11
ExceptionAttempt(Throwable, long, long) - 类 的构造器com.github.lowzj.retry.attempt.ExceptionAttempt
 
ExceptionClassPredicate<V> - com.github.lowzj.retry.predicate中的类
Created on 2018/2/11
ExceptionClassPredicate(Class<? extends Throwable>) - 类 的构造器com.github.lowzj.retry.predicate.ExceptionClassPredicate
 
ExceptionPredicate<V> - com.github.lowzj.retry.predicate中的类
Created on 2018/2/11
ExceptionPredicate(Predicate<Throwable>) - 类 的构造器com.github.lowzj.retry.predicate.ExceptionPredicate
 
exceptionWait(Class<T>, Function<T, Long>) - 类 中的静态方法com.github.lowzj.retry.WaitStrategies
Returns a strategy which sleeps for an amount of time based on the Exception that occurred.
executorService(String, int, int) - 类 中的静态方法com.github.lowzj.retry.ExecutorsUtil
 
ExecutorsUtil - com.github.lowzj.retry中的类
Created on 2018/2/11
ExecutorsUtil() - 类 的构造器com.github.lowzj.retry.ExecutorsUtil
 
exponentialWait() - 类 中的静态方法com.github.lowzj.retry.WaitStrategies
Returns a strategy which sleeps for an exponential amount of time after the first failed attempt, and in exponentially incrementing amounts after each failed attempt up to Long.MAX_VALUE.
exponentialWait(long, TimeUnit) - 类 中的静态方法com.github.lowzj.retry.WaitStrategies
Returns a strategy which sleeps for an exponential amount of time after the first failed attempt, and in exponentially incrementing amounts after each failed attempt up to the maximumTime.
exponentialWait(long, long, TimeUnit) - 类 中的静态方法com.github.lowzj.retry.WaitStrategies
Returns a strategy which sleeps for an exponential amount of time after the first failed attempt, and in exponentially incrementing amounts after each failed attempt up to the maximumTime.

F

fibonacciWait() - 类 中的静态方法com.github.lowzj.retry.WaitStrategies
Returns a strategy which sleeps for an increasing amount of time after the first failed attempt, and in Fibonacci increments after each failed attempt up to Long.MAX_VALUE.
fibonacciWait(long, TimeUnit) - 类 中的静态方法com.github.lowzj.retry.WaitStrategies
Returns a strategy which sleeps for an increasing amount of time after the first failed attempt, and in Fibonacci increments after each failed attempt up to the maximumTime.
fibonacciWait(long, long, TimeUnit) - 类 中的静态方法com.github.lowzj.retry.WaitStrategies
Returns a strategy which sleeps for an increasing amount of time after the first failed attempt, and in Fibonacci increments after each failed attempt up to the maximumTime.
fixedTimeLimit(long, TimeUnit, ExecutorService) - 类 中的静态方法com.github.lowzj.retry.AttemptTimeLimiters
 
fixedWait(long, TimeUnit) - 类 中的静态方法com.github.lowzj.retry.WaitStrategies
Returns a wait strategy that sleeps a fixed amount of time before retrying.

G

get() - 接口 中的方法com.github.lowzj.retry.attempt.Attempt
Returns the result of the attempt, if any.
get() - 类 中的方法com.github.lowzj.retry.attempt.ExceptionAttempt
 
get() - 类 中的方法com.github.lowzj.retry.attempt.ResultAttempt
 
getAttemptNumber() - 接口 中的方法com.github.lowzj.retry.attempt.Attempt
The number, starting from 1, of this attempt.
getAttemptNumber() - 类 中的方法com.github.lowzj.retry.attempt.ExceptionAttempt
 
getAttemptNumber() - 类 中的方法com.github.lowzj.retry.attempt.ResultAttempt
 
getDelaySinceFirstAttempt() - 接口 中的方法com.github.lowzj.retry.attempt.Attempt
The delay since the start of the first attempt, in milliseconds.
getDelaySinceFirstAttempt() - 类 中的方法com.github.lowzj.retry.attempt.ExceptionAttempt
 
getDelaySinceFirstAttempt() - 类 中的方法com.github.lowzj.retry.attempt.ResultAttempt
 
getExceptionCause() - 接口 中的方法com.github.lowzj.retry.attempt.Attempt
Gets the exception thrown by the call
getExceptionCause() - 类 中的方法com.github.lowzj.retry.attempt.ExceptionAttempt
 
getExceptionCause() - 类 中的方法com.github.lowzj.retry.attempt.ResultAttempt
 
getLastFailedAttempt() - 异常错误 中的方法com.github.lowzj.retry.RetryException
Returns the last failed attempt
getNumberOfFailedAttempts() - 异常错误 中的方法com.github.lowzj.retry.RetryException
Returns the number of failed attempts
getResult() - 接口 中的方法com.github.lowzj.retry.attempt.Attempt
Gets the result of the call
getResult() - 类 中的方法com.github.lowzj.retry.attempt.ExceptionAttempt
 
getResult() - 类 中的方法com.github.lowzj.retry.attempt.ResultAttempt
 

H

hasException() - 接口 中的方法com.github.lowzj.retry.attempt.Attempt
Tells if the call threw an exception or not
hasException() - 类 中的方法com.github.lowzj.retry.attempt.ExceptionAttempt
 
hasException() - 类 中的方法com.github.lowzj.retry.attempt.ResultAttempt
 
hasResult() - 接口 中的方法com.github.lowzj.retry.attempt.Attempt
Tells if the call returned a result or not
hasResult() - 类 中的方法com.github.lowzj.retry.attempt.ExceptionAttempt
 
hasResult() - 类 中的方法com.github.lowzj.retry.attempt.ResultAttempt
 

I

incrementingWait(long, TimeUnit, long, TimeUnit) - 类 中的静态方法com.github.lowzj.retry.WaitStrategies
Returns a strategy that sleeps a fixed amount of time after the first failed attempt and in incrementing amounts of time after each additional failed attempt.

J

join(WaitStrategy...) - 类 中的静态方法com.github.lowzj.retry.WaitStrategies
Joins one or more wait strategies to derive a composite wait strategy.

N

neverStop() - 类 中的静态方法com.github.lowzj.retry.StopStrategies
Returns a stop strategy which never stops retrying.
newBuilder() - 类 中的静态方法com.github.lowzj.retry.RetryerBuilder
Constructs a new builder
noTimeLimit() - 类 中的静态方法com.github.lowzj.retry.AttemptTimeLimiters
 
noWait() - 类 中的静态方法com.github.lowzj.retry.WaitStrategies
Returns a wait strategy that doesn't sleep at all before retrying.

O

onRetry(Attempt<V>) - 接口 中的方法com.github.lowzj.retry.RetryListener
This method with fire no matter what the result is and before the rejection predicate and stop strategies are applied.

P

Preconditions - com.github.lowzj.retry中的类
extract from: git@github.com:google/guava.git
Preconditions() - 类 的构造器com.github.lowzj.retry.Preconditions
 

R

randomWait(long, TimeUnit) - 类 中的静态方法com.github.lowzj.retry.WaitStrategies
Returns a strategy that sleeps a random amount of time before retrying.
randomWait(long, TimeUnit, long, TimeUnit) - 类 中的静态方法com.github.lowzj.retry.WaitStrategies
Returns a strategy that sleeps a random amount of time before retrying.
ResultAttempt<R> - com.github.lowzj.retry.attempt中的类
Created on 2018/2/11
ResultAttempt(R, long, long) - 类 的构造器com.github.lowzj.retry.attempt.ResultAttempt
 
ResultPredicate<V> - com.github.lowzj.retry.predicate中的类
Created on 2018/2/11
ResultPredicate(Predicate<V>) - 类 的构造器com.github.lowzj.retry.predicate.ResultPredicate
 
Retryer<V> - com.github.lowzj.retry中的类
A retryer, which executes a call, and retries it until it succeeds, or a stop strategy decides to stop retrying.
Retryer.RetryerCallable<X> - com.github.lowzj.retry中的类
A Callable which wraps another Callable in order to add retrying behavior from a given Retryer instance.
RetryerBuilder<V> - com.github.lowzj.retry中的类
A builder used to configure and create a Retryer.
RetryException - com.github.lowzj.retry中的异常错误
An exception indicating that none of the attempts of the Retryer succeeded.
RetryException(int, Attempt<?>) - 异常错误 的构造器com.github.lowzj.retry.RetryException
If the last Attempt had an Exception, ensure it is available in the stack trace.
RetryException(String, int, Attempt<?>) - 异常错误 的构造器com.github.lowzj.retry.RetryException
If the last Attempt had an Exception, ensure it is available in the stack trace.
retryIfException() - 类 中的方法com.github.lowzj.retry.RetryerBuilder
Configures the retryer to retry if an exception (i.e. any Exception or subclass of Exception) is thrown by the call.
retryIfException(Predicate<Throwable>) - 类 中的方法com.github.lowzj.retry.RetryerBuilder
Configures the retryer to retry if an exception satisfying the given predicate is thrown by the call.
retryIfExceptionOfType(Class<? extends Throwable>) - 类 中的方法com.github.lowzj.retry.RetryerBuilder
Configures the retryer to retry if an exception of the given class (or subclass of the given class) is thrown by the call.
retryIfResult(Predicate<V>) - 类 中的方法com.github.lowzj.retry.RetryerBuilder
Configures the retryer to retry if the result satisfies the given predicate.
retryIfRuntimeException() - 类 中的方法com.github.lowzj.retry.RetryerBuilder
Configures the retryer to retry if a runtime exception (i.e. any RuntimeException or subclass of RuntimeException) is thrown by the call.
RetryListener<V> - com.github.lowzj.retry中的接口
This listener provides callbacks for several events that occur when running code through a Retryer instance.

S

scheduledExecutorService(String, int) - 类 中的静态方法com.github.lowzj.retry.ExecutorsUtil
 
shouldStop(Attempt) - 接口 中的方法com.github.lowzj.retry.StopStrategy
Returns true if the retryer should stop retrying.
stopAfterAttempt(int) - 类 中的静态方法com.github.lowzj.retry.StopStrategies
Returns a stop strategy which stops after N failed attempts.
stopAfterDelay(long, TimeUnit) - 类 中的静态方法com.github.lowzj.retry.StopStrategies
Returns a stop strategy which stops after a given delay.
StopStrategies - com.github.lowzj.retry中的类
Factory class for StopStrategy instances.
StopStrategy - com.github.lowzj.retry中的接口
A strategy used to decide if a retryer must stop retrying after a failed attempt or not.

T

test(Attempt<V>) - 类 中的方法com.github.lowzj.retry.predicate.ExceptionClassPredicate
 
test(Attempt<V>) - 类 中的方法com.github.lowzj.retry.predicate.ExceptionPredicate
 
test(Attempt<V>) - 类 中的方法com.github.lowzj.retry.predicate.ResultPredicate
 
threadSleepStrategy() - 类 中的静态方法com.github.lowzj.retry.BlockStrategies
Returns a block strategy that puts the current thread to sleep between retries.

W

WaitStrategies - com.github.lowzj.retry中的类
Factory class for instances of WaitStrategy.
WaitStrategy - com.github.lowzj.retry中的接口
A strategy used to decide how long to sleep before retrying after a failed attempt.
withAttemptTimeLimiter(AttemptTimeLimiter<V>) - 类 中的方法com.github.lowzj.retry.RetryerBuilder
Configures the retryer to limit the duration of any particular attempt by the given duration.
withBlockStrategy(BlockStrategy) - 类 中的方法com.github.lowzj.retry.RetryerBuilder
Sets the block strategy used to decide how to block between retry attempts.
withExecutor(ScheduledExecutorService) - 类 中的方法com.github.lowzj.retry.RetryerBuilder
 
withRetryListener(RetryListener<V>) - 类 中的方法com.github.lowzj.retry.RetryerBuilder
Adds a listener that will be notified of each attempt that is made
withStopStrategy(StopStrategy) - 类 中的方法com.github.lowzj.retry.RetryerBuilder
Sets the stop strategy used to decide when to stop retrying.
withWaitStrategy(WaitStrategy) - 类 中的方法com.github.lowzj.retry.RetryerBuilder
Sets the wait strategy used to decide how long to sleep between failed attempts.
wrap(Callable<V>) - 类 中的方法com.github.lowzj.retry.Retryer
Wraps the given Callable in a Retryer.RetryerCallable, which can be submitted to an executor.
A B C E F G H I J N O P R S T W 
跳过导航链接

Copyright © 2018. All rights reserved.