| Package | Description |
|---|---|
| io.strimzi.kafka.oauth.services |
| Modifier and Type | Method and Description |
|---|---|
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.
|
<T> java.util.List<T> |
Sessions.map(java.util.function.Function<BearerTokenWithPayload,T> mapper)
Get a list of objects retrieved by applying the passed mapping function to the current active sessions set.
|
| Constructor and Description |
|---|
SessionFuture(BearerTokenWithPayload token,
java.util.concurrent.Future<T> future)
Create a new instance
|
Copyright © 2024. All rights reserved.