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

com.alogic.pool.Pool Maven / Gradle / Ivy

There is a newer version: 1.6.17
Show newest version
package com.alogic.pool;

import com.anysoft.util.BaseException;
import com.anysoft.util.Configurable;
import com.anysoft.util.Reportable;
import com.anysoft.util.XMLConfigurable;

/**
 * 缓冲池接口
 * 
 * @author duanyy
 *
 */
public interface Pool extends Reportable,Configurable,XMLConfigurable,AutoCloseable{
		
	/**
	 * 从缓冲池中借出缓冲对象
	 * @param priority 优先级
	 * @return pooled
	 * @throws BaseException
	 */
	public  pooled borrowObject(int priority,int timeout);
	
	/**
	 * 归还缓冲对象
	 * @param obj 缓冲对象
	 */
	public  void returnObject(pooled obj);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy