public enum Preference extends Enum<Preference>
| 列挙型定数と説明 |
|---|
LOCAL
Route to local node, if possible
|
ONLY_LOCAL
Route to the local shard only
|
ONLY_NODE
Route to specific node only
|
ONLY_NODES
Route to only node with attribute
|
PREFER_NODE
Route to preferred node, if possible
|
PRIMARY
Route to primary shards
|
PRIMARY_FIRST
Route to primary shards first
|
REPLICA
Route to replica shards
|
REPLICA_FIRST
Route to replica shards first
|
SHARDS
Route to specific shards
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static Preference |
parse(String preference)
Parses the Preference Type given a string
|
String |
type() |
static Preference |
valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。
|
static Preference[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
public static final Preference SHARDS
public static final Preference PREFER_NODE
public static final Preference LOCAL
public static final Preference PRIMARY
public static final Preference REPLICA
public static final Preference PRIMARY_FIRST
public static final Preference REPLICA_FIRST
public static final Preference ONLY_LOCAL
public static final Preference ONLY_NODE
public static final Preference ONLY_NODES
public static Preference[] values()
for(Preference c: Preference.values()) System.out.println(c);
public static Preference valueOf(String name)
name - 返される列挙型定数の名前。IllegalArgumentException - この列挙型に、指定した名前の定数がない場合NullPointerException - 引数がnullの場合public String type()
public static Preference parse(String preference)
Copyright © 2009–2016. All rights reserved.