Uploaded image for project: 'Java Couchbase JVM Core'
  1. Java Couchbase JVM Core
  2. JVMCBC-1076

Deprecate Event.createdAt() in favor of a version that returns an Instant

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.3.0
    • None
    • None
    • None
    • 1

    Description

      Event.createdAt() returns the value of System.nanoTime() captured when the event was created. This great if you want to answer the question, "How many nanoseconds have elapsed since this event occurred?" but makes it inconvenient to get the event's timestamp.

      Modifications:

      Add a new Event.created() method that returns an Instant representing the event's timestamp.

      Deprecate Event.createdAt(), since nanoTime is confusing for everyone, and sub-millisecond resolution is not critical for the event timestamps.

      Attachments

        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