public class ExecutorPool
extends java.lang.Object
| Constructor and Description |
|---|
ExecutorPool(PoolableObjectFactory factory)
Creates a new ExecutorPool using the given factory
|
| Modifier and Type | Method and Description |
|---|---|
Executor |
borrow()
Borrows an Executor object from the pool
|
void |
invalidate(Executor executor)
Invalidates the borrowed executor
|
void |
release(Executor executor)
Returns the borrowed executor to the pool.
|
public ExecutorPool(PoolableObjectFactory factory)
factory - the factory for managing Executor objectspublic Executor borrow() throws java.lang.Exception
java.lang.Exception - a serious problempublic void invalidate(@Nullable
Executor executor)
throws java.lang.Exception
executor - the borrowed executorjava.lang.Exception - a serious problempublic void release(@Nullable
Executor executor)
executor - the borrowed Executor to returnstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.