Class ForceLeaderAPI


  • public class ForceLeaderAPI
    extends Object
    V2 API for triggering a leader election on a particular collection and shard.

    This API (POST /v2/collections/collectionName/shards/shardName {'force-leader': {}}) is analogous to the v1 /admin/collections?action=FORCELEADER command.

    See Also:
    ForceLeaderPayload