Package io.etcd.jetcd

Interface Cluster

All Superinterfaces:
AutoCloseable, CloseableClient

public interface Cluster extends CloseableClient
Interface of cluster client talking to etcd.
  • Method Details

    • listMember

      lists the current cluster membership.
      Returns:
      the response
    • addMember

      CompletableFuture<MemberAddResponse> addMember(List<URI> peerAddrs)
      add a non-learner new member into the cluster.
      Parameters:
      peerAddrs - the peer addresses of the new member
      Returns:
      the response
    • addMember

      CompletableFuture<MemberAddResponse> addMember(List<URI> peerAddrs, boolean isLearner)
      add a new member into the cluster.
      Parameters:
      peerAddrs - the peer addresses of the new member
      isLearner - whether the member is raft learner
      Returns:
      the response
    • removeMember

      CompletableFuture<MemberRemoveResponse> removeMember(long memberID)
      removes an existing member from the cluster.
      Parameters:
      memberID - the member to remove.
      Returns:
      the response
    • updateMember

      CompletableFuture<MemberUpdateResponse> updateMember(long memberID, List<URI> peerAddrs)
      update peer addresses of the member.
      Parameters:
      memberID - the member id.
      peerAddrs - the addresses.
      Returns:
      the response