@Generated(value="OracleSDKGenerator", comments="API Version: 20190501") public final class SimpleLookupPolicy extends ResponseCacheLookupPolicy
Provides ability to vary the cache key using context expressions.
Note: Objects should always be created or deserialized using the 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 SimpleLookupPolicy.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
SimpleLookupPolicy.Builder |
ResponseCacheLookupPolicy.Type
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
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) |
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() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
getIsEnabled, getIsPrivateCachingEnabled
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@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 String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class ResponseCacheLookupPolicy
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class ResponseCacheLookupPolicy
public int hashCode()
hashCode
in class ResponseCacheLookupPolicy
Copyright © 2016–2024. All rights reserved.