try_send_request#

RunningReplica.try_send_request(pr: PendingRequest, with_rejection: bool) → ReplicaResult[source]#

Try to send the request to this replica. It may be rejected.

Parameters:
  • pr (PendingRequest) – The request to send.

  • with_rejection (bool) – Whether the replica can reject the request. Java replicas don’t support rejection.

Returns:

The result of the request.

Return type:

ReplicaResult