com.go.trove.net
Class InetAddressResolver

java.lang.Object
  |
  +--com.go.trove.net.InetAddressResolver

public class InetAddressResolver
extends java.lang.Object

Allows network host names to resolve to inet addresses via event notification.

Note: This class makes use of the java.util.Timer class, available only in Java 2, version 1.3.

Version:
6 , 01/01/23
Author:
Brian S O'Neill

Method Summary
static InetAddressResolver listenFor(java.lang.String host, InetAddressListener listener)
          Resolve the host name into InetAddresses and listen for changes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

listenFor

public static InetAddressResolver listenFor(java.lang.String host,
                                            InetAddressListener listener)
Resolve the host name into InetAddresses and listen for changes. The caller must save a reference to the resolver to prevent it from being reclaimed by the garbage collector.
Parameters:
host - host to resolve into InetAddresses
listener - listens for InetAddresses