Skip to content

Commit 1a55290

Browse files
author
chengyitian
committed
AJ-433: support ThreadPooledClient(int threadCount);
1 parent 1e67d8b commit 1a55290

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/com/xxdb/multithreadedtablewriter/MultithreadedTableWriter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ public MultithreadedTableWriter(String hostName, int port, String userId, String
357357
init(hostName,port,userId, password,dbName, tableName, useSSL,enableHighAvailability,highAvailabilitySites,
358358
batchSize, throttle,threadCount,partitionCol,compressTypes, Mode.M_Append, null, callbackHandler);
359359
}
360+
360361
private void init(String hostName, int port, String userId, String password,
361362
String dbName, String tableName, boolean useSSL,
362363
boolean enableHighAvailability, String[] highAvailabilitySites,

src/com/xxdb/streaming/client/ThreadPooledClient.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ public ThreadPooledClient() throws SocketException {
3737
this("", DEFAULT_PORT, CORES);
3838
}
3939

40+
public ThreadPooledClient(int threadCount) throws SocketException {
41+
this("", 0, threadCount);
42+
}
43+
4044
public ThreadPooledClient(int subscribePort, int threadCount) throws SocketException {
4145
this("", subscribePort, threadCount);
4246
}

0 commit comments

Comments
 (0)