Class ConfigVersion

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

@Deprecated @Internal public class ConfigVersion extends Object implements Comparable<ConfigVersion>
Deprecated.
In favor of TopologyRevision
  • Field Details

    • ZERO

      public static final ConfigVersion ZERO
      Deprecated.
      A synthetic version, older than anything the server could send.

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

  • Constructor Details

    • ConfigVersion

      public ConfigVersion(long epoch, long rev)
      Deprecated.
      Parameters:
      epoch - Major version. May be negative to indicate the epoch is not yet initialized. May be zero to indicate the server is too old to know about epochs.
      rev - Minor version. All rev values returned by the server are positive.
  • Method Details