Package com.couchbase.client.core.config
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.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ConfigVersion
Deprecated.A synthetic version, older than anything the server could send. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated.long
epoch()
Deprecated.boolean
Deprecated.int
hashCode()
Deprecated.boolean
isLessThanOrEqualTo
(ConfigVersion other) Deprecated.long
rev()
Deprecated.toString()
Deprecated.
-
Field Details
-
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
-
epoch
public long epoch()Deprecated. -
rev
public long rev()Deprecated. -
toString
Deprecated. -
compareTo
Deprecated.- Specified by:
compareTo
in interfaceComparable<ConfigVersion>
-
isLessThanOrEqualTo
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated.
-
TopologyRevision