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

org.cg.eventbus.producer.manager.BaseManager Maven / Gradle / Ivy

There is a newer version: 1.0.8
Show newest version
package org.cg.eventbus.producer.manager;

import org.apache.commons.configuration.Configuration;
import org.cg.eventbus.producer.AbstractEventProducer;

/**
 * 
 * @author liang.li
 *
 */
public abstract class BaseManager {
	
	protected BaseManager() {}
	public static BaseManager getInstance(Configuration config) {
		return null;
	}
	
	abstract public AbstractEventProducer borrowProducer(String topic) throws Exception;
	
	abstract public void returnProducer(String topic, AbstractEventProducer producer);
	
	abstract public void send(V msg) throws Exception;
	
	/**
	 * Release resources manager and its producers/pools have.
	 */
	abstract public void close();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy