public class PollingClient extends AbstractClient
AbstractClient.HAStreamTableInfoconnList, currentSiteIndexMap, DEFAULT_ACTION_NAME, DEFAULT_HOST, DEFAULT_PORT, haStreamTableInfo, HATopicToTrueTopic, hostEndian, ifUseBackupSite, isClose_, lastBackupSiteTopic, lastExceptionTopicTimeMap, lastQueue, lastSuccessSubscribeTopic, listeningHost, listeningPort, messageCache, pThread, queueManager, reconnectTable, resubscribeInterval, subInfos_, subOnce, tableNameToTrueTopic, trueTopicToSites, users, waitReconnectTopic| Constructor and Description |
|---|
PollingClient() |
PollingClient(int subscribePort) |
PollingClient(String subscribeHost,
int subscribePort) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doReconnect(Site site) |
TopicPoller |
subscribe(String host,
int port,
String tableName) |
TopicPoller |
subscribe(String host,
int port,
String tableName,
boolean reconnect) |
TopicPoller |
subscribe(String host,
int port,
String tableName,
long offset) |
TopicPoller |
subscribe(String host,
int port,
String tableName,
long offset,
boolean reconnect) |
TopicPoller |
subscribe(String host,
int port,
String tableName,
String actionName) |
TopicPoller |
subscribe(String host,
int port,
String tableName,
String actionName,
boolean reconnect) |
TopicPoller |
subscribe(String host,
int port,
String tableName,
String actionName,
long offset) |
TopicPoller |
subscribe(String host,
int port,
String tableName,
String actionName,
long offset,
boolean reconnect) |
TopicPoller |
subscribe(String host,
int port,
String tableName,
String actionName,
long offset,
boolean reconnect,
Vector filter) |
TopicPoller |
subscribe(String host,
int port,
String tableName,
String actionName,
long offset,
boolean reconnect,
Vector filter,
StreamDeserializer deserializer) |
TopicPoller |
subscribe(String host,
int port,
String tableName,
String actionName,
long offset,
boolean reconnect,
Vector filter,
StreamDeserializer deserializer,
String userName,
String passWord) |
TopicPoller |
subscribe(String host,
int port,
String tableName,
String actionName,
long offset,
boolean reconnect,
Vector filter,
StreamDeserializer deserializer,
String userName,
String passWord,
boolean msgAsTable) |
TopicPoller |
subscribe(String host,
int port,
String tableName,
String actionName,
long offset,
boolean reconnect,
Vector filter,
StreamDeserializer deserializer,
String userName,
String passWord,
boolean msgAsTable,
List<String> backupSites) |
TopicPoller |
subscribe(String host,
int port,
String tableName,
String actionName,
long offset,
boolean reconnect,
Vector filter,
StreamDeserializer deserializer,
String userName,
String passWord,
boolean msgAsTable,
List<String> backupSites,
int resubscribeInterval,
boolean subOnce) |
TopicPoller |
subscribe(String host,
int port,
String tableName,
String actionName,
long offset,
boolean reconnect,
Vector filter,
String userName,
String passWord) |
TopicPoller |
subscribe(String host,
int port,
String tableName,
String actionName,
long offset,
Vector filter) |
protected void |
subscribe(String host,
int port,
String tableName,
String actionName,
MessageHandler handler,
long offset,
boolean reconnect,
Vector filter,
StreamDeserializer deserializer,
boolean allowExistTopic,
String userName,
String password,
boolean msgAsTable,
boolean createSubInfo) |
void |
unsubscribe(String host,
int port,
String tableName) |
void |
unsubscribe(String host,
int port,
String tableName,
String actionName) |
protected void |
unsubscribeInternal(String host,
int port,
String tableName,
String actionName) |
activeCloseConnection, batchDispatch, close, dispatch, getAllReconnectSites, getAllReconnectTopic, getAllTopicsBySite, getCurrentSiteByName, getNeedReconnect, getNewLeader, getReconnectTimestamp, getSiteByName, getSubInfos, getTopicToSites, isClose, isClosed, isRemoteLittleEndian, setMsgId, setNeedReconnect, setReconnectTimestamp, subscribeInternal, subscribeInternal, subscribeInternal, subscribeInternal, subscribeInternal, subscribeInternal, subscribeInternal, subscribeInternal, subscribeStreamingSqlLogInfoInternal, tryReconnect, unsubscribeInternalpublic PollingClient()
throws SocketException
SocketExceptionpublic PollingClient(int subscribePort)
throws SocketException
SocketExceptionpublic PollingClient(String subscribeHost, int subscribePort) throws SocketException
SocketExceptionprotected boolean doReconnect(Site site)
doReconnect in class AbstractClientprotected void subscribe(String host, int port, String tableName, String actionName, MessageHandler handler, long offset, boolean reconnect, Vector filter, StreamDeserializer deserializer, boolean allowExistTopic, String userName, String password, boolean msgAsTable, boolean createSubInfo) throws IOException
IOExceptionpublic TopicPoller subscribe(String host, int port, String tableName, String actionName, long offset, boolean reconnect, Vector filter, StreamDeserializer deserializer, String userName, String passWord) throws IOException
IOExceptionpublic TopicPoller subscribe(String host, int port, String tableName, String actionName, long offset, boolean reconnect, Vector filter, StreamDeserializer deserializer, String userName, String passWord, boolean msgAsTable) throws IOException
IOExceptionpublic TopicPoller subscribe(String host, int port, String tableName, String actionName, long offset, boolean reconnect, Vector filter, StreamDeserializer deserializer, String userName, String passWord, boolean msgAsTable, List<String> backupSites, int resubscribeInterval, boolean subOnce) throws IOException
IOExceptionpublic TopicPoller subscribe(String host, int port, String tableName, String actionName, long offset, boolean reconnect, Vector filter, StreamDeserializer deserializer, String userName, String passWord, boolean msgAsTable, List<String> backupSites) throws IOException
IOExceptionpublic TopicPoller subscribe(String host, int port, String tableName, String actionName, long offset, boolean reconnect, Vector filter, String userName, String passWord) throws IOException
IOExceptionpublic TopicPoller subscribe(String host, int port, String tableName, String actionName, long offset, boolean reconnect, Vector filter, StreamDeserializer deserializer) throws IOException
IOExceptionpublic TopicPoller subscribe(String host, int port, String tableName, String actionName, long offset, boolean reconnect, Vector filter) throws IOException
IOExceptionpublic TopicPoller subscribe(String host, int port, String tableName, String actionName, long offset, boolean reconnect) throws IOException
IOExceptionpublic TopicPoller subscribe(String host, int port, String tableName, String actionName, long offset, Vector filter) throws IOException
IOExceptionpublic TopicPoller subscribe(String host, int port, String tableName, String actionName, long offset) throws IOException
IOExceptionpublic TopicPoller subscribe(String host, int port, String tableName, long offset) throws IOException
IOExceptionpublic TopicPoller subscribe(String host, int port, String tableName, long offset, boolean reconnect) throws IOException
IOExceptionpublic TopicPoller subscribe(String host, int port, String tableName) throws IOException
IOExceptionpublic TopicPoller subscribe(String host, int port, String tableName, boolean reconnect) throws IOException
IOExceptionpublic TopicPoller subscribe(String host, int port, String tableName, String actionName) throws IOException
IOExceptionpublic TopicPoller subscribe(String host, int port, String tableName, String actionName, boolean reconnect) throws IOException
IOExceptionpublic void unsubscribe(String host, int port, String tableName, String actionName) throws IOException
IOExceptionpublic void unsubscribe(String host, int port, String tableName) throws IOException
IOExceptionprotected void unsubscribeInternal(String host, int port, String tableName, String actionName) throws IOException
unsubscribeInternal in class AbstractClientIOExceptionCopyright © 2026 DolphinDB. All rights reserved.