public class OAuthMiddlewareImpl extends Object implements AutoCloseable, OAuthMiddleware
OAuthMiddleware with automatic retry upon expired access| Constructor and Description |
|---|
OAuthMiddlewareImpl(ExecutorService executor,
OAuthHandler oauthHandler,
int maxRetries,
boolean useCircuitBreaker) |
OAuthMiddlewareImpl(OAuthHandler oAuthHandler) |
OAuthMiddlewareImpl(OAuthHandler oauthHandler,
int maxRetries,
boolean useCircuitBreaker) |
OAuthMiddlewareImpl(ScheduledExecutorService executorService,
OAuthHandler oauthHandler,
int maxRetries,
boolean useCircuitBreaker) |
OAuthMiddlewareImpl(dev.failsafe.spi.Scheduler scheduler,
OAuthHandler oauthHandler,
int maxRetries,
boolean useCircuitBreaker) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
CompletableFuture<ApiHttpResponse<byte[]>> |
invoke(ApiHttpRequest request,
Function<ApiHttpRequest,CompletableFuture<ApiHttpResponse<byte[]>>> next) |
public OAuthMiddlewareImpl(OAuthHandler oAuthHandler)
public OAuthMiddlewareImpl(OAuthHandler oauthHandler, int maxRetries, boolean useCircuitBreaker)
public OAuthMiddlewareImpl(ScheduledExecutorService executorService, OAuthHandler oauthHandler, int maxRetries, boolean useCircuitBreaker)
public OAuthMiddlewareImpl(ExecutorService executor, OAuthHandler oauthHandler, int maxRetries, boolean useCircuitBreaker)
public OAuthMiddlewareImpl(dev.failsafe.spi.Scheduler scheduler, OAuthHandler oauthHandler, int maxRetries, boolean useCircuitBreaker)
public CompletableFuture<ApiHttpResponse<byte[]>> invoke(ApiHttpRequest request, Function<ApiHttpRequest,CompletableFuture<ApiHttpResponse<byte[]>>> next)
invoke in interface Middlewarepublic void close()
close in interface AutoCloseable