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

com.nh.micro.datasource.delay.MicroConnDelayHandler Maven / Gradle / Ivy

package com.nh.micro.datasource.delay;

import org.apache.log4j.Logger;
import com.nh.micro.datasource.MicroXaDataSource;
import com.nh.micro.datasource.MicroXaDataSourceFactory;

/**
 * 
 * @author ninghao
 *
 */
public class MicroConnDelayHandler implements MicroDelayHandler {
	private static final Logger log = Logger.getLogger(MicroConnDelayHandler.class.getName());
	public String dataSourceId="default";
	
	@Override
	public void doDelayRemove(String key, Object value) {
		log.debug("micro xa conn delay begin rollback key="+key);
		MicroXaDataSourceFactory.getDataSourceInstance(dataSourceId).rollback(key);
		
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy