Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-1661

Discourage use of GetResult.expiry() in favor of alternative that returns Instant

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0.7
    • 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6
    • None
    • None
    • 1

    Description

      The Duration returned by GetResult.expiry() is bogus – it represents the time span between the start of the epoch and the instant when the document expires.

      The return type of this method should really be `Instant`, but that would be a breaking change.

      Instead, we can discourage using the `expiry()` method and add an `expiryTime()` method that returns an Instant.

      We plan to deprecate `expiry()` method in the next minor release, when we can remove the "uncommitted" tag from `expiryTime()`.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              david.nault David Nault
              david.nault David Nault
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty