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
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0
    • 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

        For Gerrit Dashboard: JVMCBC-1076
        # Subject Branch Project Status CR V

        Activity

          There are no comments yet on this issue.

          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