Package demo.demo2

Source Code of demo.demo2.ConfigChangeDemo2

package demo.demo2;

import java.util.Timer;
import java.util.TimerTask;

import demo.conf.DemoConf;

public class ConfigChangeDemo2 {

  public static void main(String args[]){
    Timer timer = new Timer();
    try {
      TimerTask task = new ChangeZkTask2(DemoConf.host, DemoConf.root);
      timer.schedule(task, 0, 5000);   
    } catch(Exception e){
      e.printStackTrace();
    }
  }

}
TOP

Related Classes of demo.demo2.ConfigChangeDemo2

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.