| Package | Description |
|---|---|
| io.strimzi.kafka.oauth.services |
| Modifier and Type | Method and Description |
|---|---|
BearerTokenWithPayload |
Sessions.findFirst(java.util.function.Predicate<BearerTokenWithPayload> filter)
Iterate over sessions, and find the first element matching the filter.
|
BearerTokenWithPayload |
SessionFuture.getToken()
Get a
BearerTokenWithPayload object representing a session |
| Modifier and Type | Method and Description |
|---|---|
void |
Sessions.put(BearerTokenWithPayload token)
Put a new token object into sessions cache
|
void |
Sessions.remove(BearerTokenWithPayload token)
Remove a token from sessions cache
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<SessionFuture<?>> |
Sessions.executeTask(java.util.concurrent.ExecutorService executor,
java.util.function.Predicate<BearerTokenWithPayload> filter,
java.util.function.Consumer<BearerTokenWithPayload> task)
Iterate over all active sessions (represented by stored token objects) applying a filter and submit a task to the passed executor for each passing token.
|
java.util.List<SessionFuture<?>> |
Sessions.executeTask(java.util.concurrent.ExecutorService executor,
java.util.function.Predicate<BearerTokenWithPayload> filter,
java.util.function.Consumer<BearerTokenWithPayload> task)
Iterate over all active sessions (represented by stored token objects) applying a filter and submit a task to the passed executor for each passing token.
|
BearerTokenWithPayload |
Sessions.findFirst(java.util.function.Predicate<BearerTokenWithPayload> filter)
Iterate over sessions, and find the first element matching the filter.
|
| Constructor and Description |
|---|
SessionFuture(BearerTokenWithPayload token,
java.util.concurrent.Future<T> future)
Create a new instance
|
Copyright © 2023. All rights reserved.