Skip to content

Commit

Permalink
Review retry
Browse files Browse the repository at this point in the history
  • Loading branch information
hexiaofeng committed May 8, 2024
1 parent ba09f9e commit c2bddaa
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,36 @@ interface InboundRequest extends ServiceRequest {
*/
interface OutboundRequest extends ServiceRequest {

/**
* Retrieves the configured timeout value.
* <p>
* This method returns the timeout setting for the current request. The timeout
* is expressed in milliseconds and represents the maximum time allowed for a certain
* operation to complete. A return value of 0 may indicate that no timeout is set,
* implying an operation could potentially wait indefinitely.
* </p>
*
* @return The timeout value in milliseconds. A value of 0 may indicate no timeout.
*/
default long getTimeout() {
return 0;
}

/**
* Sets the timeout value for the current request.
* <p>
* This method allows specifying a timeout in milliseconds, which determines the maximum
* duration allowed for a certain operation to complete. Setting this value influences
* how long a process will wait before timing out. A value of 0 can be used to indicate
* that there should be no timeout, allowing the operation to continue indefinitely until
* completion.
* </p>
*
* @param timeout The desired timeout in milliseconds. A value of 0 indicates no timeout.
*/
default void setTimeout(long timeout) {
}

}
}

0 comments on commit c2bddaa

Please sign in to comment.