Coverage Report - org.mule.util.pool.ObjectPool
 
Classes in this File Line Coverage Branch Coverage Complexity
ObjectPool
N/A
N/A
1
 
 1  
 /*
 2  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 3  
  * The software in this package is published under the terms of the CPAL v1.0
 4  
  * license, a copy of which has been included with this distribution in the
 5  
  * LICENSE.txt file.
 6  
  */
 7  
 package org.mule.util.pool;
 8  
 
 9  
 import org.mule.api.lifecycle.Disposable;
 10  
 import org.mule.api.lifecycle.Initialisable;
 11  
 import org.mule.api.object.ObjectFactory;
 12  
 
 13  
 /**
 14  
  * <code>ObjectPool</code> is a simple pooling interface for objects
 15  
  */
 16  
 public interface ObjectPool extends Initialisable, Disposable
 17  
 {
 18  
 
 19  
     Object borrowObject() throws Exception;
 20  
 
 21  
     void returnObject(Object object);
 22  
 
 23  
     int getNumActive();
 24  
 
 25  
     int getMaxActive();
 26  
 
 27  
     void clear();
 28  
 
 29  
     void close();
 30  
 
 31  
     void setObjectFactory(ObjectFactory objectFactory);
 32  
     
 33  
     ObjectFactory getObjectFactory();
 34  
 
 35  
 }