Class ScheduledRetryingExecutor<ResponseT>

java.lang.Object
com.google.api.gax.retrying.ScheduledRetryingExecutor<ResponseT>
Type Parameters:
ResponseT - response type
All Implemented Interfaces:
RetryingExecutor<ResponseT>, RetryingExecutorWithContext<ResponseT>

public class ScheduledRetryingExecutor<ResponseT> extends Object implements RetryingExecutorWithContext<ResponseT>
The retry executor which uses ScheduledExecutorService to schedule an attempt tasks.

This implementation does not manage the lifecycle of the underlying ScheduledExecutorService, so it should be managed outside of this class (like calling the ExecutorService.shutdown() when the pool is not needed anymore). In a typical usage pattern there are usually multiple instances of this class sharing same instance of the underlying ScheduledExecutorService.

This class is thread-safe.