T - The type that is used to identify members of the host set.public interface DynamicHostSet<T>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
DynamicHostSet.HostChangeMonitor<T>
An interface to an object that is interested in receiving notification whenever the host set
changes.
|
static class |
DynamicHostSet.MonitorException |
| Modifier and Type | Method and Description |
|---|---|
void |
monitor(DynamicHostSet.HostChangeMonitor<T> monitor)
Deprecated.
Deprecated in favor of
watch(HostChangeMonitor) |
com.twitter.common.base.Command |
watch(DynamicHostSet.HostChangeMonitor<T> monitor)
Registers a monitor to receive change notices for this server set as long as this jvm process
is alive.
|
@Deprecated void monitor(DynamicHostSet.HostChangeMonitor<T> monitor) throws DynamicHostSet.MonitorException
watch(HostChangeMonitor)monitor - the server set monitor to call back when the host set changesDynamicHostSet.MonitorException - if there is a problem monitoring the host setcom.twitter.common.base.Command watch(DynamicHostSet.HostChangeMonitor<T> monitor) throws DynamicHostSet.MonitorException
monitor - the server set monitor to call back when the host set changesDynamicHostSet.MonitorException - if there is a problem monitoring the host set