Send feedback
Class UnaryCallSettings<RequestT,ResponseT> (2.31.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.31.1 keyboard_arrow_down
public class UnaryCallSettings<RequestT , ResponseT>
A base settings class to configure a UnaryCallable. An instance of UnaryCallSettings is not
sufficient on its own to construct a UnaryCallable; a concrete derived type is necessary.
This base class includes settings that are applicable to all calls, which currently is just
retry settings.
Retry configuration is composed of two parts: the retryable codes, and the retry settings. The
retryable codes indicate which codes cause a retry to occur, and the retry settings configure the
retry logic when the retry needs to happen. To turn off retries, set the retryable codes to the
empty set.
UnaryCallSettings contains a concrete builder class, UnaryCallSettings.Builder . This
builder class cannot be used to create an instance of UnaryCallSettings, because
UnaryCallSettings is an abstract class.
Inheritance
Object >
UnaryCallSettings<RequestT,ResponseT>
Type Parameters Name Description RequestT
ResponseT
Static Methods
<RequestT,ResponseT>newUnaryCallSettingsBuilder()
public static UnaryCallSettings . Builder<RequestT , ResponseT> <RequestT , ResponseT>newUnaryCallSettingsBuilder ()
Returns Type Description Builder <RequestT ,ResponseT >
Constructors
UnaryCallSettings(UnaryCallSettings.Builder<RequestT,ResponseT> builder)
protected UnaryCallSettings ( UnaryCallSettings . Builder<RequestT , ResponseT> builder )
Parameter Name Description builder
Builder <RequestT ,ResponseT >
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter Name Description obj
Object
Overrides
getRetrySettings()
public final RetrySettings getRetrySettings ()
See the class documentation of UnaryCallSettings for a description of what retry
settings do.
getRetryableCodes()
public final Set<StatusCode . Code> getRetryableCodes ()
See the class documentation of UnaryCallSettings for a description of what retryable
codes do.
hashCode()
Returns Type Description int
Overrides
toBuilder()
public UnaryCallSettings . Builder<RequestT , ResponseT> toBuilder ()
Returns Type Description Builder <RequestT ,ResponseT >
toString()
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-21 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{
"lastModified": "Last updated 2024-08-21 UTC.",
"confidential": False
}