redis.clients.jedis.AbstractPipeline Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jedis_preview Show documentation
Show all versions of jedis_preview Show documentation
Jedis is a blazingly small and sane Redis java client.
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));
}
}