gu.simplemq.BaseMQSender Maven / Gradle / Ivy
The newest version!
package gu.simplemq;
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Preconditions.checkArgument;
import java.util.Collection;
import java.util.Collections;
import com.google.common.base.Function;
import com.google.common.base.Predicates;
import com.google.common.base.Throwables;
import com.google.common.collect.Collections2;
import gu.simplemq.json.BaseJsonEncoder;
import gu.simplemq.pool.BaseMQPool;
import gu.simplemq.pool.BaseMQPool.MQPoolException;
/**
* {@link IProducer},{@link IPublisher} 实现基类
* @param 消息系统的CLIENT实例类型
* @author guyadong
*
*/
public abstract class BaseMQSender {
private final static BaseJsonEncoder encoder = BaseJsonEncoder.getEncoder();
/**
* 将对象序列化为JSON字符串的{@link Function} 实例
*/
private final static Function
© 2015 - 2025 Weber Informatics LLC | Privacy Policy