public class RequestSettings<Self extends RequestSettings> extends Object
| Constructor and Description |
|---|
RequestSettings() |
| Modifier and Type | Method and Description |
|---|---|
Optional<Duration> |
getCancelAfter() |
long |
getDeadlineAfter() |
Optional<Duration> |
getOperationTimeout() |
Optional<Duration> |
getTimeout() |
String |
getTraceId() |
Self |
setCancelAfter(Duration cancelAfter) |
Self |
setDeadlineAfter(long deadlineAfter)
This method is deprecated.
|
Self |
setOperationTimeout(Duration operationTimeout) |
Self |
setTimeout(Duration duration)
Sets a client timeout.
|
Self |
setTimeout(long duration,
TimeUnit unit) |
Self |
setTraceId(String traceId) |
public String getTraceId()
public Self setTimeout(Duration duration)
duration - Durationpublic long getDeadlineAfter()
public Self setDeadlineAfter(long deadlineAfter)
deadlineAfter - the number of nanoseconds from the UNIX-epochCopyright © 2021. All rights reserved.