FetchRequest build(
short version)
FetchRequest
FetchRequest
is a message request with Fetch API key and the following properties:
FetchRequest
is created when:
-
FetchRequest.Builder
is requested to build a FetchRequest -
AbstractRequest
is requested to parse a request (with the Fetch API key) -
FetchRequest
is requested to parse a byte buffer
FetchRequest.Builder
Utility
FetchRequest.Builder
is a request builder to build a FetchRequest.
FetchRequest.Builder
is used when…FIXME
Creating FetchRequest.Builder for Kafka Consumers — FetchRequest.Builder.forConsumer
Utility
Builder forConsumer(
int maxWait,
int minBytes,
Map<TopicPartition, PartitionData> fetchData)
forConsumer
…FIXME
Note
|
forConsumer is used when Fetcher is requested to sendFetches (for KafkaConsumer to poll for records).
|
Creating FetchRequest.Builder for Partition Replicas — FetchRequest.Builder.forReplica
Utility
Builder forReplica(
short allowedVersion,
int replicaId,
int maxWait,
int minBytes,
Map<TopicPartition, PartitionData> fetchData)
forReplica
simply creates a new FetchRequest.Builder (with the min and max versions exactly the given allowedVersion
).
Note
|
|