Overrides global request timeout for this endpoint.
@Client
interface CustomerApi {
@Get("/{id}")
@RequestTimeout(value = 1, ChronoUnit.SECONDS)
Customer getById(long id);
}
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionUnit of time of the timeout value
-
Element Details
-
value
long valueHow long the timeout should be -
chronoUnit
ChronoUnit chronoUnitUnit of time of the timeout value- Default:
MILLIS
-