@@ -41,7 +41,7 @@ public abstract class AbstractClient implements MessageDispatcher {
4141 protected String lastBackupSiteTopic = "" ;
4242 protected Map <String , Integer > currentSiteIndexMap = new ConcurrentHashMap <>();
4343 protected static Map <String , Long > lastExceptionTopicTimeMap = new ConcurrentHashMap <>();
44- protected static Integer resubTimeout ;
44+ protected static Integer resubscribeInterval ;
4545 protected static boolean subOnce ;
4646 protected BlockingQueue <List <IMessage >> lastQueue ;
4747 protected String lastSuccessSubscribeTopic = "" ;
@@ -521,7 +521,7 @@ protected BlockingQueue<List<IMessage>> subscribeInternal(String host, int port,
521521 String tableName , String actionName , MessageHandler handler ,
522522 long offset , boolean reconnect , Vector filter , StreamDeserializer deserializer ,
523523 boolean allowExistTopic , String userName , String passWord , boolean msgAsTable ,
524- List <String > backupSites , int resubTimeout , boolean subOnce , boolean createSubInfo ) throws IOException , RuntimeException {
524+ List <String > backupSites , int resubscribeInterval , boolean subOnce , boolean createSubInfo ) throws IOException , RuntimeException {
525525 Entity re ;
526526 String topic = "" ;
527527 DBConnection dbConn = null ;
@@ -543,7 +543,7 @@ protected BlockingQueue<List<IMessage>> subscribeInternal(String host, int port,
543543 }
544544 }
545545
546- AbstractClient .resubTimeout = resubTimeout ;
546+ AbstractClient .resubscribeInterval = resubscribeInterval ;
547547 AbstractClient .subOnce = subOnce ;
548548 AbstractClient .ifUseBackupSite = true ;
549549
@@ -771,8 +771,8 @@ protected BlockingQueue<List<IMessage>> subscribeInternal(String host, int port,
771771 String tableName , String actionName , MessageHandler handler ,
772772 long offset , boolean reconnect , Vector filter , StreamDeserializer deserializer ,
773773 boolean allowExistTopic , String userName , String passWord , boolean msgAsTable ,
774- List <String > backupSites , int resubTimeout , boolean subOnce ) throws IOException , RuntimeException {
775- return subscribeInternal (host , port , tableName , actionName , handler , offset , reconnect , filter , deserializer , allowExistTopic , userName , passWord , msgAsTable , backupSites , resubTimeout , subOnce , true );
774+ List <String > backupSites , int resubscribeInterval , boolean subOnce ) throws IOException , RuntimeException {
775+ return subscribeInternal (host , port , tableName , actionName , handler , offset , reconnect , filter , deserializer , allowExistTopic , userName , passWord , msgAsTable , backupSites , resubscribeInterval , subOnce , true );
776776 }
777777
778778 protected BlockingQueue <List <IMessage >> subscribeInternal (String host , int port ,
0 commit comments