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

gu.simplemq.IProducer Maven / Gradle / Ivy

There is a newer version: 2.3.17
Show newest version
package gu.simplemq;

import java.util.Collection;

/**
 * 生产者模型接口(多队列)
 * @author guyadong
 *
 */
public interface IProducer {

	/**
	 * 根据默认的队列添加模式,向指定的消息队列(频道)添加一个消息对象
	 * @param channel
	 * @param object
	 * @see #setOfferLast(boolean)
	 */
	 void produce(Channel channel, T object);

	/**
	 * 生产数据
	 * @param channel
	 * @param c
	 * @see #produce(Channel, Object)
	 */
	 void produce(Channel channel, Collectionc);

	/**
	 * 生产数据
	 * @param channel
	 * @param objects
	 * @see #produce(Channel, Object) 
	 */
	 void produce(Channel channel, @SuppressWarnings("unchecked") T... objects);

	IAdvisor getAdvisor();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy