|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.alipay.remoting.ConnectionPool
public class ConnectionPool
Connection pool
| Constructor Summary | |
|---|---|
ConnectionPool(ConnectionSelectStrategy strategy)
Constructor |
|
| Method Summary | |
|---|---|
void |
add(Connection connection)
add a connection |
boolean |
contains(Connection connection)
check weather a connection already added |
Connection |
get()
get a connection |
List<Connection> |
getAll()
get all connections |
long |
getLastAccessTimestamp()
Getter method for property lastAccessTimestamp. |
boolean |
isAsyncCreationDone()
is async create connection done |
boolean |
isEmpty()
is connection pool empty |
void |
markAsyncCreationDone()
do mark async create connection done |
void |
markAsyncCreationStart()
do mark async create connection start |
void |
removeAllAndTryClose()
remove all connections |
void |
removeAndTryClose(Connection connection)
removeAndTryClose a connection |
void |
scan()
Scan it. |
int |
size()
connection pool size |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionPool(ConnectionSelectStrategy strategy)
strategy - | Method Detail |
|---|
public void add(Connection connection)
connection - public boolean contains(Connection connection)
connection -
public void removeAndTryClose(Connection connection)
connection - public void removeAllAndTryClose()
public Connection get()
public List<Connection> getAll()
public int size()
public boolean isEmpty()
public long getLastAccessTimestamp()
public boolean isAsyncCreationDone()
public void markAsyncCreationDone()
public void markAsyncCreationStart()
public void scan()
Scannable
scan in interface ScannableScannable.scan()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||