枚举 RefreshPolicy

java.lang.Object
java.lang.Enum<RefreshPolicy>
org.easysearch.client.security.RefreshPolicy
所有已实现的接口:
java.io.Serializable, java.lang.Comparable<RefreshPolicy>, java.lang.constant.Constable

public enum RefreshPolicy
extends java.lang.Enum<RefreshPolicy>
Enumeration of values that control the refresh policy for a request that supports specifying a refresh policy.
  • 嵌套类概要

    从类继承的嵌套类/接口 java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • 枚举常量概要

    枚举常量
    枚举常量 说明
    IMMEDIATE
    Force a refresh as part of this request.
    NONE
    Don't refresh after this request.
    WAIT_UNTIL
    Leave this request open until a refresh has made the contents of this request visible to search.
  • 方法概要

    修饰符和类型 方法 说明
    static RefreshPolicy getDefault()
    Get the default refresh policy, which is NONE
    java.lang.String getValue()  
    static RefreshPolicy valueOf​(java.lang.String name)
    返回带有指定名称的该类型的枚举常量。
    static RefreshPolicy[] values()
    按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。

    从类继承的方法 java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    从类继承的方法 java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • 枚举常量详细资料

    • NONE

      public static final RefreshPolicy NONE
      Don't refresh after this request. The default.
    • IMMEDIATE

      public static final RefreshPolicy IMMEDIATE
      Force a refresh as part of this request. This refresh policy does not scale for high indexing or search throughput but is useful to present a consistent view to for indices with very low traffic. And it is wonderful for tests!
    • WAIT_UNTIL

      public static final RefreshPolicy WAIT_UNTIL
      Leave this request open until a refresh has made the contents of this request visible to search. This refresh policy is compatible with high indexing and search throughput but it causes the request to wait to reply until a refresh occurs.
  • 方法详细资料

    • values

      public static RefreshPolicy[] values()
      按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
      返回:
      按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
    • valueOf

      public static RefreshPolicy valueOf​(java.lang.String name)
      返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
      java.lang.NullPointerException - 如果参数为空值
    • getValue

      public java.lang.String getValue()
    • getDefault

      public static RefreshPolicy getDefault()
      Get the default refresh policy, which is NONE