Class TopologyRevision

java.lang.Object
com.couchbase.client.core.topology.TopologyRevision
All Implemented Interfaces:
Comparable<TopologyRevision>

@Internal public class TopologyRevision extends Object implements Comparable<TopologyRevision>
  • Field Details

    • ZERO

      public static final TopologyRevision ZERO
      A synthetic revision, older than anything the server could send.

      (Actually, the server could send a revision with a negative epoch to indicate the epoch is not yet initialized, but we want to ignore those undercooked configs.)

  • Constructor Details

    • TopologyRevision

      public TopologyRevision(long epoch, long rev)
      Parameters:
      epoch - May be negative to indicate the epoch is not yet initialized.
      rev - Never negative.
  • Method Details