link start!
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package org.apache.commons.pool;
|
||||
|
||||
public interface KeyedObjectPool {
|
||||
void addObject(Object obj) throws Exception;
|
||||
|
||||
Object borrowObject(Object obj) throws Exception;
|
||||
|
||||
void clear() throws Exception, UnsupportedOperationException;
|
||||
|
||||
void clear(Object obj) throws Exception, UnsupportedOperationException;
|
||||
|
||||
void close() throws Exception;
|
||||
|
||||
int getNumActive() throws UnsupportedOperationException;
|
||||
|
||||
int getNumActive(Object obj) throws UnsupportedOperationException;
|
||||
|
||||
int getNumIdle() throws UnsupportedOperationException;
|
||||
|
||||
int getNumIdle(Object obj) throws UnsupportedOperationException;
|
||||
|
||||
void invalidateObject(Object obj, Object obj2) throws Exception;
|
||||
|
||||
void returnObject(Object obj, Object obj2) throws Exception;
|
||||
|
||||
void setFactory(KeyedPoolableObjectFactory keyedPoolableObjectFactory) throws IllegalStateException, UnsupportedOperationException;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.apache.commons.pool;
|
||||
|
||||
public interface KeyedObjectPoolFactory {
|
||||
KeyedObjectPool createPool();
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package org.apache.commons.pool;
|
||||
|
||||
public interface KeyedPoolableObjectFactory {
|
||||
void activateObject(Object obj, Object obj2) throws Exception;
|
||||
|
||||
void destroyObject(Object obj, Object obj2) throws Exception;
|
||||
|
||||
Object makeObject(Object obj) throws Exception;
|
||||
|
||||
void passivateObject(Object obj, Object obj2) throws Exception;
|
||||
|
||||
boolean validateObject(Object obj, Object obj2);
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package org.apache.commons.pool;
|
||||
|
||||
public interface ObjectPool {
|
||||
void addObject() throws Exception;
|
||||
|
||||
Object borrowObject() throws Exception;
|
||||
|
||||
void clear() throws Exception, UnsupportedOperationException;
|
||||
|
||||
void close() throws Exception;
|
||||
|
||||
int getNumActive() throws UnsupportedOperationException;
|
||||
|
||||
int getNumIdle() throws UnsupportedOperationException;
|
||||
|
||||
void invalidateObject(Object obj) throws Exception;
|
||||
|
||||
void returnObject(Object obj) throws Exception;
|
||||
|
||||
void setFactory(PoolableObjectFactory poolableObjectFactory) throws IllegalStateException, UnsupportedOperationException;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.apache.commons.pool;
|
||||
|
||||
public interface ObjectPoolFactory {
|
||||
ObjectPool createPool();
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package org.apache.commons.pool;
|
||||
|
||||
public interface PoolableObjectFactory {
|
||||
void activateObject(Object obj) throws Exception;
|
||||
|
||||
void destroyObject(Object obj) throws Exception;
|
||||
|
||||
Object makeObject() throws Exception;
|
||||
|
||||
void passivateObject(Object obj) throws Exception;
|
||||
|
||||
boolean validateObject(Object obj);
|
||||
}
|
||||
Reference in New Issue
Block a user