public class EventClient 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 |
|---|
EventClient(List<EventSchema> eventSchemas,
List<String> eventTimeFields,
List<String> commonFields) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doReconnect(Site site) |
void |
subscribe(String host,
int port,
String tableName,
String actionName,
MessageHandler handler,
long offset,
boolean reconnect,
String userName,
String password) |
void |
subscribe(String host,
int port,
String tableName,
String actionName,
MessageHandler handler,
long offset,
boolean reconnect,
Vector filter,
String userName,
String password) |
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 EventClient(List<EventSchema> eventSchemas, List<String> eventTimeFields, List<String> commonFields) throws SocketException
SocketExceptionpublic void subscribe(String host, int port, String tableName, String actionName, MessageHandler handler, long offset, boolean reconnect, String userName, String password) throws IOException
IOExceptionpublic void subscribe(String host, int port, String tableName, String actionName, MessageHandler handler, long offset, boolean reconnect, Vector filter, String userName, String password) throws IOException
IOExceptionpublic void unsubscribe(String host, int port, String tableName, String actionName) throws IOException
IOExceptionprotected void unsubscribeInternal(String host, int port, String tableName, String actionName) throws IOException
unsubscribeInternal in class AbstractClientIOExceptionprotected boolean doReconnect(Site site)
doReconnect in class AbstractClientCopyright © 2026 DolphinDB. All rights reserved.