com.twitter.common.net.pool
Class DynamicHostSetUtil

java.lang.Object
  extended by com.twitter.common.net.pool.DynamicHostSetUtil

public class DynamicHostSetUtil
extends Object

Util Class for dealing with dynamic sets of hosts.


Constructor Summary
DynamicHostSetUtil()
           
 
Method Summary
static
<T> ImmutableSet<T>
getSnapshot(DynamicHostSet<T> hostSet)
          Gets a snapshot of a set of dynamic hosts (e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicHostSetUtil

public DynamicHostSetUtil()
Method Detail

getSnapshot

public static <T> ImmutableSet<T> getSnapshot(DynamicHostSet<T> hostSet)
                                   throws DynamicHostSet.MonitorException
Gets a snapshot of a set of dynamic hosts (e.g. a ServerSet) and returns a readable copy of the underlying actual endpoints.

Type Parameters:
T -
Parameters:
hostSet -
Returns:
Throws:
DynamicHostSet.MonitorException