com.plumelog.core.client.AbstractClient Maven / Gradle / Ivy
The newest version!
package com.plumelog.core.client;
import com.plumelog.core.exception.LogQueueConnectException;
import redis.clients.jedis.JedisPubSub;
import java.util.*;
/**
* className:AbstractClient
* description: TODO
* time:2020-05-13.11:47
*
* @author Tank
* @version 1.0.0
*/
public abstract class AbstractClient {
private static AbstractClient client;
public static AbstractClient getClient() {
return client;
}
public static void setClient(AbstractClient abstractClient) {
client = abstractClient;
}
public void pushMessage(String key, String strings) throws LogQueueConnectException {
}
public void putMessageList(String key, List list) throws LogQueueConnectException {
}
public List getMessage(String key, int size) throws LogQueueConnectException {
List list = new ArrayList<>();
return list;
}
public boolean setNx(String key, Integer expire) {
return false;
}
public boolean existsKey(String key) {
return true;
}
public String getMessage(String key) {
return null;
}
public void set(String key, String value) {
}
public void set(String key, String value, int seconds) {
}
public void expireAt(String key, Long time) {
}
public void expire(String key, int seconds) {
}
public Long incr(String key) {
Long re = 0L;
return re;
}
public Long incrBy(String key, int value) {
Long re = 0L;
return re;
}
public void hset(String key, Map value) {
}
public void sadd(String key, String value) {
}
public Set smembers(String key) {
return new HashSet<>();
}
public void del(String key) {
}
public void hset(String key, String field, String value) {
}
public void hdel(String key, String... field) {
}
public String hget(String key, String field) {
String value = "";
return value;
}
public Long llen(String key) {
Long value = 0L;
return value;
}
public Map hgetAll(String key) {
Map value = new HashMap<>();
return value;
}
public List hmget(String key, String... field) {
return new ArrayList<>();
}
public Long hincrby(String key, String field, int num) {
return null;
}
public void publish(String channel, String message) {
}
public Long hlen(String key) {
return null;
}
public void subscribe(JedisPubSub jedisPubSub, String... channel) {
}
}