Package io.zeebe.client.impl
Class NoopCredentialsProvider
- java.lang.Object
-
- io.zeebe.client.impl.NoopCredentialsProvider
-
- All Implemented Interfaces:
CredentialsProvider
public final class NoopCredentialsProvider extends Object implements CredentialsProvider
-
-
Constructor Summary
Constructors Constructor Description NoopCredentialsProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyCredentials(io.grpc.Metadata headers)
Adds credentials to the headers.boolean
shouldRetryRequest(Throwable throwable)
Returns true if the request should be retried; otherwise returns false.
-
-
-
Method Detail
-
applyCredentials
public void applyCredentials(io.grpc.Metadata headers)
Description copied from interface:CredentialsProvider
Adds credentials to the headers. For an example of this, seeOAuthCredentialsProvider.applyCredentials(Metadata)
- Specified by:
applyCredentials
in interfaceCredentialsProvider
- Parameters:
headers
- gRPC headers to be modified
-
shouldRetryRequest
public boolean shouldRetryRequest(Throwable throwable)
Description copied from interface:CredentialsProvider
Returns true if the request should be retried; otherwise returns false. For an example of this, seeOAuthCredentialsProvider.shouldRetryRequest(Throwable)
- Specified by:
shouldRetryRequest
in interfaceCredentialsProvider
- Parameters:
throwable
- error that caused the request to fail
-
-