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>
public static class PublicationRetryer.PublicationRetryerBuilder<T> extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PublicationRetryer.PublicationRetryerBuilder<T>
acceptStrategy(@NonNull AcceptStrategy acceptStrategy)
PublicationRetryer.PublicationRetryerBuilder<T>
backupStrategy(@NonNull BackupStrategy<T> backupStrategy)
PublicationRetryer<T>
build()
PublicationRetryer.PublicationRetryerBuilder<T>
publisher(@NonNull java.util.function.Function<T,java.util.concurrent.CompletableFuture<Result>> publisher)
PublicationRetryer.PublicationRetryerBuilder<T>
retryConfig(@NonNull RetryConfig retryConfig)
PublicationRetryer.PublicationRetryerBuilder<T>
retryExecutor(@NonNull java.util.concurrent.ScheduledExecutorService retryExecutor)
java.lang.String
toString()
-
-
-
Method Detail
-
retryExecutor
public PublicationRetryer.PublicationRetryerBuilder<T> retryExecutor(@NonNull @NonNull java.util.concurrent.ScheduledExecutorService retryExecutor)
- Returns:
this
.
-
publisher
public PublicationRetryer.PublicationRetryerBuilder<T> publisher(@NonNull @NonNull java.util.function.Function<T,java.util.concurrent.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
public PublicationRetryer<T> build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-