docs: CompletableFuture<Partition> connect(
        PartitionManagementService managementService,
        ThreadContextFactory threadFactory) {
      election = managementService.getElectionService().getElectionFor(partitionId);
      client = new PrimaryBackupPartitionClient(this, managementService, threadFactory);
      return client.start().thenApply(v -> this);
    }