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

redis.clients.jedis.AbstractPipeline Maven / Gradle / Ivy

The newest version!
package redis.clients.jedis;

import java.io.Closeable;

public abstract class AbstractPipeline extends PipeliningBase implements Closeable {

  protected AbstractPipeline(CommandObjects commandObjects) {
    super(commandObjects);
  }

  @Override
  public abstract void close();

  /**
   * Synchronize pipeline by reading all responses.
   */
  public abstract void sync();

  public Response publish(String channel, String message) {
    return appendCommand(commandObjects.publish(channel, message));
  }

  public Response publish(byte[] channel, byte[] message) {
    return appendCommand(commandObjects.publish(channel, message));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy