public interface RequestContext
| Modifier and Type | Method and Description |
|---|---|
<T> T |
computeIfAbsent(Object key,
Supplier<T> supplier)
Returns the value associated with the specified key, or computes it atomically using the provided
supplier.
|
<T> Optional<T> |
get(Object key)
Returns the value associated with the specified key, or
Optional.empty(). |
String |
partitionIdentifier()
Returns the partition identifier
|
String partitionIdentifier()
<T> T computeIfAbsent(Object key, Supplier<T> supplier)
T - the return typekey - the key to retrieve the value under.supplier - the supplier to create the missing value. Should be short and sweet and not mutate the
request context.<T> Optional<T> get(Object key)
Optional.empty().Copyright © 2019 Atlassian. All rights reserved.