@Generated(value="OracleSDKGenerator", comments="API Version: 20190501") public final class SimpleLookupPolicy extends ResponseCacheLookupPolicy
Provides ability to vary the cache key using context expressions.
SimpleLookupPolicy.Builder
. This model distinguishes fields
that are null
because they are unset from fields that are explicitly set to null
. This is done in
the setter methods of the SimpleLookupPolicy.Builder
, which maintain a set of all explicitly set fields called
__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take
__explicitlySet__
into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).Modifier and Type | Class and Description |
---|---|
static class |
SimpleLookupPolicy.Builder |
ResponseCacheLookupPolicy.Type
Constructor and Description |
---|
SimpleLookupPolicy(Boolean isEnabled,
Boolean isPrivateCachingEnabled,
List<String> cacheKeyAdditions)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static SimpleLookupPolicy.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
List<String> |
getCacheKeyAdditions()
A list of context expressions whose values will be added to the base cache key.
|
int |
hashCode() |
SimpleLookupPolicy.Builder |
toBuilder() |
String |
toString() |
getIsEnabled, getIsPrivateCachingEnabled
@Deprecated public SimpleLookupPolicy(Boolean isEnabled, Boolean isPrivateCachingEnabled, List<String> cacheKeyAdditions)
public static SimpleLookupPolicy.Builder builder()
Create a new builder.
public SimpleLookupPolicy.Builder toBuilder()
public List<String> getCacheKeyAdditions()
A list of context expressions whose values will be added to the base cache key. Values should contain an expression enclosed within ${} delimiters. Only the request context is available.
public String toString()
toString
in class ResponseCacheLookupPolicy
public boolean equals(Object o)
equals
in class ResponseCacheLookupPolicy
public int hashCode()
hashCode
in class ResponseCacheLookupPolicy
Copyright © 2016–2022. All rights reserved.