@InterfaceStability.Evolving public class ListOffsetsResult extends java.lang.Object
Admin.listOffsets(Map)
call.
The API of this class is evolving, see AdminClient
for details.Modifier and Type | Class and Description |
---|---|
static class |
ListOffsetsResult.ListOffsetsResultInfo |
Constructor and Description |
---|
ListOffsetsResult(java.util.Map<TopicPartition,KafkaFuture<ListOffsetsResult.ListOffsetsResultInfo>> futures) |
Modifier and Type | Method and Description |
---|---|
KafkaFuture<java.util.Map<TopicPartition,ListOffsetsResult.ListOffsetsResultInfo>> |
all()
Return a future which succeeds only if offsets for all specified partitions have been successfully
retrieved.
|
KafkaFuture<ListOffsetsResult.ListOffsetsResultInfo> |
partitionResult(TopicPartition partition)
Return a future which can be used to check the result for a given partition.
|
public ListOffsetsResult(java.util.Map<TopicPartition,KafkaFuture<ListOffsetsResult.ListOffsetsResultInfo>> futures)
public KafkaFuture<ListOffsetsResult.ListOffsetsResultInfo> partitionResult(TopicPartition partition)
public KafkaFuture<java.util.Map<TopicPartition,ListOffsetsResult.ListOffsetsResultInfo>> all()