Sends a request to the partition if request specifies a partition, otherwise assign a partition
send it to it.
Parameters:
request - request to send
Returns:
future which will be completed when a successful response from the broker is received.
The future will be completed exceptionally on error or on receiving BrokerRejection.
Sends a request to the partition if request specifies a partition, otherwise assign a partition
send it to it. The request times out after the specified requestTimeout.
Parameters:
request - request to send
requestTimeout - timeout for the request
Returns:
future which will be completed when a successful response from the broker is received.
The future will be completed exceptionally on error or on receiving BrokerRejection.
Sends a request to the partition if request specifies a partition, otherwise assign a partition
send it to it. If leader for that partition is not reachable the request will be resend until a
timeout.
Parameters:
request - request to send
Returns:
future which will be completed when a successful response from the broker is
received.The future will be completed exceptionally on error or on receiving
BrokerRejection.
Sends a request to the partition if request specifies a partition, otherwise assign a partition
send it to it. If leader for that partition is not reachable the request will be resend until
the given requestTimeout.
Parameters:
request - request to send
requestTimeout - timeout for the request
Returns:
future which will be completed when a successful response from the broker is
received.The future will be completed exceptionally on error or on receiving
BrokerRejection.
Sends a request to the partition if request specifies a partition, otherwise assign a partition
send it to it. If leader for that partition is not reachable the request will be resend until a
timeout.
Parameters:
request -
responseConsumer - consumer that will be invoked when a successful response is received
throwableConsumer - consumer that will be invoked on errors