redis.clients.jedis.params.XAutoClaimParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.bundles.jedis
Show all versions of org.apache.servicemix.bundles.jedis
This OSGi bundle wraps the ${pkgArtifactId} ${pkgVersion} jar file.
The newest version!
package redis.clients.jedis.params;
import redis.clients.jedis.CommandArguments;
import redis.clients.jedis.Protocol.Keyword;
import java.util.Objects;
public class XAutoClaimParams implements IParams {
private Integer count;
public XAutoClaimParams() {
}
public static XAutoClaimParams xAutoClaimParams() {
return new XAutoClaimParams();
}
/**
* Set the count of stream entries/ids to return as part of the command output.
* @param count COUNT
* @return XAutoClaimParams
*/
public XAutoClaimParams count(int count) {
this.count = count;
return this;
}
@Override
public void addParams(CommandArguments args) {
if (count != null) {
args.add(Keyword.COUNT.getRaw()).add(count);
}
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
XAutoClaimParams that = (XAutoClaimParams) o;
return Objects.equals(count, that.count);
}
@Override
public int hashCode() {
return Objects.hash(count);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy