public KafkaFuture<Void> all() {
        return this.future.thenApply(topicPartitionErrorsMap ->  {
            List<TopicPartition> partitionsFailed = topicPartitionErrorsMap.entrySet()
                .stream()
                .filter(e -> e.getValue() != Errors.NONE)
                .map(Map.Entry::getKey)
                .collect(Collectors.toList());
            for (Errors error : topicPartitionErrorsMap.values()) {
                if (error != Errors.NONE) {
                    throw error.exception(
                        "Failed altering consumer group offsets for the following partitions: " + partitionsFailed);
                }
            }
            return null;
        });
    }
Return a future which succeeds if all the alter offsets succeed.
clients/src/main/java/org/apache/kafka/clients/admin/AlterConsumerGroupOffsetsResult.java