Package org.apache.james.jspf.impl
Class DNSServiceAsynchSimulator
java.lang.Object
org.apache.james.jspf.impl.DNSServiceAsynchSimulator
- All Implemented Interfaces:
Runnable,DNSAsynchLookupService
Wrap a DNSService an execute the calls asynch in a new Thread
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetRecordsAsynch(DNSRequest request, int id, IResponseQueue responsePool) Retrieve dns records for the given host asynchronouslyvoidrun()Run the async dns call in a new thread
-
Constructor Details
-
DNSServiceAsynchSimulator
-
-
Method Details
-
getRecordsAsynch
Description copied from interface:DNSAsynchLookupServiceRetrieve dns records for the given host asynchronously- Specified by:
getRecordsAsynchin interfaceDNSAsynchLookupService- Parameters:
request- the dns requestid- the identification key for the response.responsePool- the queue where the response will be appended.- See Also:
-
run
public void run()Run the async dns call in a new thread
-