Class RequestParameters


  • public class RequestParameters
    extends Object
    Defines parameters which be included with the outgoing request.
    • Constructor Detail

      • RequestParameters

        public RequestParameters()
        Constructs an empty RequestParameters instance
      • RequestParameters

        public RequestParameters​(Optional<Duration> timeout,
                                 Optional<String> traceId,
                                 Map<String,​String> tags)
        Constructs a RequestParameters instance, using the provided inputs.
        Parameters:
        timeout - Timeout for the request
        traceId - A unique identifier for this query. Adheres to the [W3C Trace Context](https://w3c.github.io/trace-context) spec.
        tags - Key-value pair metadata to associate with this query.
        Throws:
        IllegalArgumentException - If the number of tags provided exceeds the maximum.