Class RequestSettings<Self extends RequestSettings>

    • Constructor Detail

      • RequestSettings

        public RequestSettings()
    • Method Detail

      • getTraceId

        public String getTraceId()
      • setTraceId

        public Self setTraceId​(String traceId)
      • setTimeout

        public Self setTimeout​(Duration duration)
        Sets a client timeout. After this much time since request is sent there is no reason to process it. Please consider also setting a server timeout (OperationTimeout or CancelAfter) with a value lower than [client] Timeout. Timeout has higher priority than DeadlineAfter.
        Parameters:
        duration - Duration
        Returns:
        this
      • setTimeout

        public Self setTimeout​(long duration,
                               TimeUnit unit)
      • getDeadlineAfter

        public long getDeadlineAfter()
      • setDeadlineAfter

        public Self setDeadlineAfter​(long deadlineAfter)
        This method is deprecated. Please consider using setTimeout instead. Sets an instantaneous point on the time-line after which there is no reason to process request. Setting Timeout has higher priority than setting DeadlineAfter
        Parameters:
        deadlineAfter - the number of nanoseconds from the UNIX-epoch
        Returns:
        this
      • setOperationTimeout

        public Self setOperationTimeout​(Duration operationTimeout)
      • setCancelAfter

        public Self setCancelAfter​(Duration cancelAfter)