@Override public void process(WatchedEvent event){
  KeeperState eventState=event.getState();
  EventType eventType=event.getType();
  log.info("Receive from Watcher, State: {}, Type: {}.",eventState,eventType);
  if (eventState == KeeperState.SyncConnected) {
    connectedSignal.countDown();
    log.info("Connect to {} sucessfully",connectionString);
  }
}

@ Override public void process ( WatchedEvent event ) { KeeperState eventState = event . getState ( ) ; EventType eventType = event . getType ( ) ; log . info ( "Receive from Watcher, State: {}, Type: {}." , eventState , eventType ) ; if ( eventState == KeeperState . SyncConnected ) { connectedSignal . countDown ( ) ; log . info ( "Connect to {} sucessfully" , connectionString ) ; } }
interface method , do things after receiving event from server watcher
