public class ReverseDNSRunnable
extends java.lang.Object
implements java.lang.Runnable
| Constructor and Description |
|---|
ReverseDNSRunnable(java.lang.String ipAddress)
Simple constructor which also pre-sets hostName attribute for failover situations.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Runnable implementation to thread the work done in this class, allowing the
implementer to set a thread timeout and thereby short-circuit the lookup.
|
void |
set(java.lang.String hostName)
Glorified setter with logging.
|
public ReverseDNSRunnable(java.lang.String ipAddress)
ipAddress - the ip address on which reverse DNS will be done.public void run()
run in interface java.lang.Runnablepublic void set(java.lang.String hostName)
hostName - the resolved hostname