withRetry method Null safety

PaylikeRequestBuilder<T> withRetry(
  1. RetryHandler<T> retryHandler
)

Receives a custom retry implementation and enables retry mechanism.

Implementation

PaylikeRequestBuilder<T> withRetry(RetryHandler<T> retryHandler) {
  this.retryHandler = retryHandler;
  retryEnabled = true;
  return this;
}