pub struct FetchRequestBuilder { /* private fields */ }
Expand description

Builder for FetchRequest.

Implementations§

The clusterId if known. This is used to validate metadata fetches prior to broker registration.

Supported API versions: 12-13

The broker ID of the follower, of -1 if this request is from a consumer.

Supported API versions: 0-13

The maximum time in milliseconds to wait for the response.

Supported API versions: 0-13

The minimum bytes to accumulate in the response.

Supported API versions: 0-13

The maximum bytes to fetch. See KIP-74 for cases where this limit may not be honored.

Supported API versions: 3-13

This setting controls the visibility of transactional records. Using READ_UNCOMMITTED (isolation_level = 0) makes all records visible. With READ_COMMITTED (isolation_level = 1), non-transactional and COMMITTED transactional records are visible. To be more concrete, READ_COMMITTED returns all data from offsets smaller than the current LSO (last stable offset), and enables the inclusion of the list of aborted transactions in the result, which allows consumers to discard ABORTED transactional records

Supported API versions: 4-13

The fetch session ID.

Supported API versions: 7-13

The fetch session epoch, which is used for ordering requests in a session.

Supported API versions: 7-13

The topics to fetch.

Supported API versions: 0-13

In an incremental fetch request, the partitions to remove.

Supported API versions: 7-13

Rack ID of the consumer making this request

Supported API versions: 11-13

Other tagged fields

Builds a new FetchRequest.

Errors

If a required field has not been initialized.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.