Class OAuthCredentialsCache
java.lang.Object
io.camunda.zeebe.client.impl.oauth.OAuthCredentialsCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomputeIfMissingOrInvalid
(String endpoint, SupplierWithIO<ZeebeClientCredentials> zeebeClientCredentialsConsumer) put
(String endpoint, ZeebeClientCredentials credentials) int
size()
<T> Optional<T>
withCache
(String endpoint, FunctionWithIO<ZeebeClientCredentials, T> function) void
-
Constructor Details
-
OAuthCredentialsCache
-
-
Method Details
-
readCache
- Throws:
IOException
-
writeCache
- Throws:
IOException
-
get
-
computeIfMissingOrInvalid
public ZeebeClientCredentials computeIfMissingOrInvalid(String endpoint, SupplierWithIO<ZeebeClientCredentials> zeebeClientCredentialsConsumer) throws IOException - Throws:
IOException
-
withCache
public <T> Optional<T> withCache(String endpoint, FunctionWithIO<ZeebeClientCredentials, T> function) throws IOException- Throws:
IOException
-
put
-
size
public int size()
-