All Downloads are FREE. Search and download functionalities are using the official Maven repository.

redis.clients.jedis.params.XReadParams Maven / Gradle / Ivy

package redis.clients.jedis.params;

public class XReadParams extends Params {

  private static final String COUNT = "COUNT";
  private static final String BLOCK = "BLOCK";

  public static XReadParams xReadParams() {
    return new XReadParams();
  }

  public XReadParams count(int count) {
    addParam(COUNT, count);
    return this;
  }

  public XReadParams block(int block) {
    addParam(BLOCK, block);
    return this;
  }

  public boolean hasBlock() {
    return super.contains(BLOCK);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy