|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IConnectionManager
Common interface for a connection manager
Method Summary | |
---|---|
void |
checkIn(IConnection connection)
Give a connection back to the pool |
IConnection |
checkOut(java.lang.String address,
int port)
Take a connection from the pool. |
IConnection |
checkOut(java.lang.String address,
int port,
int capacity)
Take a connection from the pool. |
int |
getPoolSize(java.lang.String address,
int port)
Retrieve the actual size of the pool identified by this address and port |
void |
release()
Release all the connection in the pool NOT IMPLEMENTED YET |
Method Detail |
---|
IConnection checkOut(java.lang.String address, int port, int capacity)
capacity
.
address
- the address of the connectionport
- the port of the connectioncapacity
- the capacity of the pool
IConnection checkOut(java.lang.String address, int port)
address
- the address of the connectionport
- the port of the connection
void checkIn(IConnection connection)
connection
- the connection to return to the poolvoid release()
NOT IMPLEMENTED YET
int getPoolSize(java.lang.String address, int port)
address
- the address of the connectionport
- the port of the connection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |