Class CloudOutbox.Entry

java.lang.Object
com.ultikits.ultitools.utils.CloudOutbox.Entry
Enclosing class:
CloudOutbox

static final class CloudOutbox.Entry extends Object
One unacknowledged reliable event. Immutable; payload() returns a copy.
  • Field Details

    • id

      private final String id
    • type

      private final String type
    • ts

      private final long ts
    • payload

      private final com.google.gson.JsonObject payload
  • Constructor Details

    • Entry

      Entry(String id, String type, long ts, com.google.gson.JsonObject payload)
      Parameters:
      id - the envelope id, a ULID
      type - the envelope type
      ts - the event time in epoch milliseconds (contract answer 5)
      payload - the payload; stored as given, so callers pass a copy they no longer touch
  • Method Details

    • id

      String id()
    • type

      String type()
    • ts

      long ts()
    • payload

      com.google.gson.JsonObject payload()
      Returns:
      a copy of the payload; changing it does not change the entry