com.twitter.common.net.pool
Interface DynamicHostSet.HostChangeMonitor<T>

Enclosing interface:
DynamicHostSet<T>

public static interface DynamicHostSet.HostChangeMonitor<T>

An interface to an object that is interested in receiving notification whenever the host set changes.


Method Summary
 void onChange(ImmutableSet<T> hostSet)
          Called when either the available set of services changes (when a service dies or a new instance comes on-line) or when an existing service advertises a status or health change.
 

Method Detail

onChange

void onChange(ImmutableSet<T> hostSet)
Called when either the available set of services changes (when a service dies or a new instance comes on-line) or when an existing service advertises a status or health change.

Parameters:
hostSet - the current set of available ServiceInstances