@@ -237,15 +237,15 @@ public void subscribe(String host, int port, String tableName, String actionName
237237 }
238238 }
239239
240- public void subscribe (String host , int port , String tableName , String actionName , MessageHandler handler , long offset , boolean reconnect , Vector filter , StreamDeserializer deserializer , boolean allowExistTopic , int batchSize , int throttle , String userName , String password , List <String > backupSites , int resubscribeTimeout , boolean subOnce ) throws IOException {
240+ public void subscribe (String host , int port , String tableName , String actionName , MessageHandler handler , long offset , boolean reconnect , Vector filter , StreamDeserializer deserializer , boolean allowExistTopic , int batchSize , int throttle , String userName , String password , List <String > backupSites , int resubscribeInterval , boolean subOnce ) throws IOException {
241241 if (batchSize <=0 )
242242 throw new IllegalArgumentException ("BatchSize must be greater than zero" );
243243 if (throttle <0 )
244244 throw new IllegalArgumentException ("Throttle must be greater than or equal to zero" );
245- if (resubscribeTimeout < 0 )
246- // resubscribeTimeout default: 100ms
247- resubscribeTimeout = 100 ;
248- BlockingQueue <List <IMessage >> queue = subscribeInternal (host , port , tableName , actionName , handler , offset , reconnect , filter , deserializer , allowExistTopic , userName , password , false , backupSites , resubscribeTimeout , subOnce );
245+ if (resubscribeInterval < 0 )
246+ // resubscribeInterval default: 100ms
247+ resubscribeInterval = 100 ;
248+ BlockingQueue <List <IMessage >> queue = subscribeInternal (host , port , tableName , actionName , handler , offset , reconnect , filter , deserializer , allowExistTopic , userName , password , false , backupSites , resubscribeInterval , subOnce );
249249 HandlerLopper handlerLopper = new HandlerLopper (queue , handler , batchSize , throttle == 0 ? -1 : throttle );
250250 handlerLopper .start ();
251251 String topicStr = host + ":" + port + "/" + tableName + "/" + actionName ;
0 commit comments