@InterfaceStability.Evolving public class ListOffsetsResult extends 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(Map<TopicPartition,KafkaFuture<ListOffsetsResult.ListOffsetsResultInfo>> futures) |
Modifier and Type | Method and Description |
---|---|
KafkaFuture<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(Map<TopicPartition,KafkaFuture<ListOffsetsResult.ListOffsetsResultInfo>> futures)
public KafkaFuture<ListOffsetsResult.ListOffsetsResultInfo> partitionResult(TopicPartition partition)
public KafkaFuture<Map<TopicPartition,ListOffsetsResult.ListOffsetsResultInfo>> all()