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

net.gdface.facelog.PublishTask Maven / Gradle / Ivy

There is a newer version: 5.3.0
Show newest version
package net.gdface.facelog;

import java.util.concurrent.Executor;

import gu.simplemq.BasePublishTask;
import gu.simplemq.Channel;
import gu.simplemq.IPublisher;

/**
 * 将发布消息的动作封装为{@link Runnable}任务对象提交到线程池{@link ServiceConstant#GLOBAL_EXCEUTOR}执行
 * @author guyadong
 *
 * @param  发布数据类型
 */
public class PublishTask extends BasePublishTask implements ServiceConstant{

	/**
	 * 构造函数
	 * @param channel 发布消息的频道
	 * @param input 发布数据对象
	 * @param publisher 
	 */
	public PublishTask(Channel channel,T input,IPublisher publisher) {
		super(channel, input, publisher);
	}

	@Override
	protected Executor getExecutor() {
		return GLOBAL_EXCEUTOR;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy