Class CmpTarget<T>

    • Constructor Detail

      • CmpTarget

        protected CmpTarget​(io.etcd.jetcd.api.Compare.CompareTarget target,
                            T targetValue)
    • Method Detail

      • version

        public static CmpTarget.VersionCmpTarget version​(long version)
        Cmp on a given version.
        Parameters:
        version - version to compare
        Returns:
        the version compare target
      • createRevision

        public static CmpTarget.CreateRevisionCmpTarget createRevision​(long revision)
        Cmp on the create revision.
        Parameters:
        revision - the create revision
        Returns:
        the create revision compare target
      • modRevision

        public static CmpTarget.ModRevisionCmpTarget modRevision​(long revision)
        Cmp on the modification revision.
        Parameters:
        revision - the modification revision
        Returns:
        the modification revision compare target
      • getTarget

        public io.etcd.jetcd.api.Compare.CompareTarget getTarget()
        Get the compare target used for this compare.
        Returns:
        the compare target used for this compare
      • getTargetValue

        public T getTargetValue()
        Get the compare target value of this compare.
        Returns:
        the compare target value of this compare.