public class ExclusiveDBConnectionPool extends Object implements DBConnectionPool
| Constructor and Description |
|---|
ExclusiveDBConnectionPool(String host,
int port,
String uid,
String pwd,
int count,
boolean loadBalance,
boolean enableHighAvailability) |
ExclusiveDBConnectionPool(String host,
int port,
String uid,
String pwd,
int count,
boolean loadBalance,
boolean enableHighAvailability,
boolean compress) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(DBTask task) |
void |
execute(List<DBTask> tasks) |
int |
getConnectionCount() |
void |
shutdown() |
public ExclusiveDBConnectionPool(String host, int port, String uid, String pwd, int count, boolean loadBalance, boolean enableHighAvailability) throws IOException
IOExceptionpublic ExclusiveDBConnectionPool(String host, int port, String uid, String pwd, int count, boolean loadBalance, boolean enableHighAvailability, boolean compress) throws IOException
IOExceptionpublic void execute(List<DBTask> tasks)
execute in interface DBConnectionPoolpublic void execute(DBTask task)
execute in interface DBConnectionPoolpublic int getConnectionCount()
getConnectionCount in interface DBConnectionPoolpublic void shutdown()
shutdown in interface DBConnectionPoolCopyright © 2022 DolphinDB. All rights reserved.