|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
DNS message transport interface, abstract class for DNS packet transports.
Method Summary | |
void |
addHost(java.lang.String host,
int port)
Add a host to the pool of servers to attempt connection with. |
DNSConnector |
getConnector()
Returns a connector object used to communicate with the contained servers. |
int |
getTimeout()
Get the connection timeout. |
void |
setTimeout(int timeout)
Set the connection timeout. |
java.lang.String |
toString()
Returns a string representation of the internal state, mostly for debugging purposes. |
Method Detail |
public void setTimeout(int timeout)
public int getTimeout()
public void addHost(java.lang.String host, int port)
host
- destination host name.port
- destination port.public DNSConnector getConnector()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |