Class ConfigRevision

java.lang.Object
com.couchbase.client.dcp.core.config.ConfigRevision
All Implemented Interfaces:
Comparable<ConfigRevision>

public class ConfigRevision extends Object implements Comparable<ConfigRevision>
  • Field Details

    • ZERO

      public static final ConfigRevision 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

    • ConfigRevision

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