public interface ServerSetWatcher
|Modifier and Type||Interface and Description|
Exception thrown when failed to monitor serverset.
An interface to an object that is interested in receiving notification whenever the host set changes.
void watch(ServerSetWatcher.ServerSetMonitor monitor) throws ServerSetWatcher.MonitorException
Blocks until the initial server set can be gathered and delivered to the monitor. The monitor will be notified if the membership set or parameters of existing members have changed.
monitor- the server set monitor to call back when the host set changes
ServerSetWatcher.MonitorException- if there is a problem monitoring the host set
Copyright © 2016-2018 The Apache Software Foundation. All Rights Reserved.