All Implemented Interfaces:

public class ShardRouting
extends java.lang.Object
implements JsonpSerializable
See Also:
API specification
  • Field Details

  • Method Details

    • of

      public static ShardRouting of​(java.util.function.Function<ShardRouting.Builder,​ObjectBuilder<ShardRouting>> fn)
    • node

      public final java.lang.String node()
      Required - API name: node
    • primary

      public final boolean primary()
      Required - API name: primary
    • relocatingNode

      @Nullable public final java.lang.String relocatingNode()
      API name: relocating_node
    • state

      public final ShardRoutingState state()
      Required - API name: state
    • serialize

      public void serialize​( generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​( generator, JsonpMapper mapper)
    • setupShardRoutingDeserializer

      protected static void setupShardRoutingDeserializer​(ObjectDeserializer<ShardRouting.Builder> op)