Class CommonOptions<SELF extends CommonOptions<SELF>>

    • Constructor Detail

      • CommonOptions

        public CommonOptions()
    • Method Detail

      • self

        protected SELF self()
        Allows to return the right options builder instance for child implementations.
      • timeout

        public SELF timeout​(Duration timeout)
        Specifies a custom per-operation timeout.

        Note: if a custom timeout is provided through this builder, it will override the default set on the environment.

        Parameters:
        timeout - the timeout to use for this operation.
        Returns:
        this options builder for chaining purposes.
      • retryStrategy

        public SELF retryStrategy​(RetryStrategy retryStrategy)
        Specifies a custom RetryStrategy for this operation.

        Note: if a custom strategy is provided through this builder, it will override the default set on the environment.

        Parameters:
        retryStrategy - the retry strategy to use for this operation.
        Returns:
        this options builder for chaining purposes.
      • parentSpan

        public SELF parentSpan​(io.opentracing.Span span)
        Specifies a parent OpenTracing Span for this operation.

        If no parent span is provided, depending on the tracer implementation used, a new one might be created which is not associated to any other parent.

        Parameters:
        span - the parent span to use for this operation.
        Returns:
        this options builder for chaining purposes.