Interface CouchbaseRequest

    • Method Detail

      • emit

        void emit​(CouchbaseResponse response)
        Emits the CouchbaseResponse into the underlying state holder (like a subject) without completing it as per contract.
        Parameters:
        response - the response to emit.
      • complete

        void complete()
        Completes the underlying state holder.
      • fail

        void fail​(Throwable throwable)
        Fails the CouchbaseResponse on the state holder as per contract.
        Parameters:
        throwable - the throwable to fail the response with.
      • bucket

        String bucket()
        The associated bucket name for this request.
        Returns:
        the bucket name.
      • username

        String username()
        User authorized for bucket access
      • password

        String password()
        The password associated with the bucket/ user
        Returns:
        the password.
      • incrementRetryCount

        int incrementRetryCount()
        Returns the old retry count and increments it by one.
        Returns:
        the old retryCount.
      • retryCount

        int retryCount()
        Returns the current retry count.
        Returns:
        the current retry count.
      • retryAfter

        void retryAfter​(long after)
        Sets the initial retry after time for the request.
        Parameters:
        after -
      • retryAfter

        long retryAfter()
        Gets the initial retry after time for the request.
      • maxRetryDuration

        void maxRetryDuration​(long duration)
        Sets the maximum retry duration for the request.
        Parameters:
        duration -
      • maxRetryDuration

        long maxRetryDuration()
        Returns the maximum retry duration for the request.
        Returns:
        duration
      • retryDelay

        void retryDelay​(Delay delay)
        Sets the retry delay config
        Parameters:
        delay -
      • retryDelay

        Delay retryDelay()
        Returns the retry delay config
        Returns:
        delay
      • isActive

        @Private
        @Uncommitted
        boolean isActive()
        Checks if the request is unsubscribed on a timeout
        Returns:
        false if timed out, else true
      • subscriber

        @Private
        @Uncommitted
        void subscriber​(rx.Subscriber subscriber)
        Optionally add subscriber to check for the timeouts
      • dispatchHostname

        String dispatchHostname()
      • dispatchHostname

        void dispatchHostname​(String hostname)
      • span

        io.opentracing.Span span()
        Returns the Span for this request if set.
        Returns:
        the span used.
      • span

        void span​(io.opentracing.Span span,
                  CoreEnvironment env)
        Allows to set a custom span that should be used.
        Parameters:
        span - the span to use.
        env - the core env used for context-sensitive stuff, may be null.
      • operationId

        String operationId()
        A unique operation id, used for tracing purposes. May or may not be null depending on the service implementation.
        Returns:
        the operation id or null.
      • lastLocalSocket

        String lastLocalSocket()
      • lastRemoteSocket

        String lastRemoteSocket()
      • lastLocalId

        String lastLocalId()
      • lastLocalSocket

        void lastLocalSocket​(String local)
      • lastRemoteSocket

        void lastRemoteSocket​(String remote)
      • lastLocalId

        void lastLocalId​(String localId)