Class ClientPrimaryReplicaTracker.PrimaryReplicasResult

java.lang.Object
org.apache.ignite.client.handler.ClientPrimaryReplicaTracker.PrimaryReplicasResult
Enclosing class:
ClientPrimaryReplicaTracker

public static class ClientPrimaryReplicaTracker.PrimaryReplicasResult extends Object
Primary replicas per partition with timestamp.
  • Method Details

    • nodeNames

      @Nullable public @Nullable List<String> nodeNames()
    • leaseStartTimes

      public long @Nullable [] leaseStartTimes()
      Lease start times of the primary replicas, indexed by partition and aligned with nodeNames().

      A lease start time is also the enlistment consistency token that a read-write operation presents to the primary replica, so a caller enlisting partitions on its own takes the token from here instead of resolving the lease a second time. Best-effort like the rest of the tracker: a token may already be superseded by a newer lease, in which case the primary replica rejects the operation.

      HybridTimestamp.NULL_HYBRID_TIMESTAMP for a partition whose primary is unknown or that was not requested - the same partitions nodeNames() leaves null.

    • timestamp

      public long timestamp()
    • partitions

      public int partitions()