Class CachedQueryResult.PolicyValues
java.lang.Object
org.opensearch.common.cache.policy.CachedQueryResult.PolicyValues
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable
- Enclosing class:
CachedQueryResult
@ExperimentalApi
public static class CachedQueryResult.PolicyValues
extends Object
implements org.opensearch.core.common.io.stream.Writeable
A class containing information needed for all cache policies
to decide whether to admit a given value.
- Opensearch.experimental:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
-
Constructor Summary
ConstructorDescriptionPolicyValues
(long tookTimeNanos) PolicyValues
(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionlong
void
writeTo
(org.opensearch.core.common.io.stream.StreamOutput out)
-
Constructor Details
-
PolicyValues
public PolicyValues(long tookTimeNanos) -
PolicyValues
- Throws:
IOException
-
-
Method Details
-
getTookTimeNanos
public long getTookTimeNanos() -
writeTo
- Specified by:
writeTo
in interfaceorg.opensearch.core.common.io.stream.Writeable
- Throws:
IOException
-