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

    Constructors
    Constructor
    Description
    PolicyValues(long tookTimeNanos)
     
    PolicyValues(org.opensearch.core.common.io.stream.StreamInput in)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    void
    writeTo(org.opensearch.core.common.io.stream.StreamOutput out)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PolicyValues

      public PolicyValues(long tookTimeNanos)
    • PolicyValues

      public PolicyValues(org.opensearch.core.common.io.stream.StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details

    • getTookTimeNanos

      public long getTookTimeNanos()
    • writeTo

      public void writeTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      writeTo in interface org.opensearch.core.common.io.stream.Writeable
      Throws:
      IOException