Package cern.nxcals.api.ingestion.retry
Class PublicationRetryer.PublicationRetryerBuilder<T>
java.lang.Object
cern.nxcals.api.ingestion.retry.PublicationRetryer.PublicationRetryerBuilder<T>
- Enclosing class:
PublicationRetryer<T>
-
Method Summary
Modifier and TypeMethodDescriptionacceptStrategy(@NonNull AcceptStrategy acceptStrategy) backupStrategy(@NonNull BackupStrategy<T> backupStrategy) build()publisher(@NonNull Function<T, CompletableFuture<Result>> publisher) retryConfig(@NonNull RetryConfig retryConfig) retryExecutor(@NonNull ScheduledExecutorService retryExecutor) toString()
-
Method Details
-
retryExecutor
public PublicationRetryer.PublicationRetryerBuilder<T> retryExecutor(@NonNull @NonNull ScheduledExecutorService retryExecutor) - Returns:
this.
-
publisher
public PublicationRetryer.PublicationRetryerBuilder<T> publisher(@NonNull @NonNull Function<T, CompletableFuture<Result>> publisher) - Returns:
this.
-
retryConfig
public PublicationRetryer.PublicationRetryerBuilder<T> retryConfig(@NonNull @NonNull RetryConfig retryConfig) - Returns:
this.
-
acceptStrategy
public PublicationRetryer.PublicationRetryerBuilder<T> acceptStrategy(@NonNull @NonNull AcceptStrategy acceptStrategy) - Returns:
this.
-
backupStrategy
public PublicationRetryer.PublicationRetryerBuilder<T> backupStrategy(@NonNull @NonNull BackupStrategy<T> backupStrategy) - Returns:
this.
-
build
-
toString
-