838485868788899091929394
// wait for the client-side failover to complete while(true) { FailoverEvent event = failoverListener.getEvent(120000); if (event != null && FailoverEvent.FAILOVER_COMPLETED == event.getType()) { break; } if (event == null) {
143144145146147148149150151152153154
211212213214215216217218219220221222
288289290291292293294295296297298299
367368369370371372373374375376377378
442443444445446447448449450451452453
514515516517518519520521522523524525
621622623624625626627628629630631632
712713714715716717718719720721722723
341342343344345346347348349350351352
// wait for the client-side failover to complete while (true) { FailoverEvent event = failoverListener.getEvent(30000); if (event != null && FailoverEvent.FAILOVER_COMPLETED == event.getType()) { break; } if (event == null) {