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 TypeMethodDescriptionvoid
getRecordsAsynch
(DNSRequest request, int id, IResponseQueue responsePool) Retrieve dns records for the given host asynchronouslyvoid
run()
Run the async dns call in a new thread
-
Constructor Details
-
DNSServiceAsynchSimulator
-
-
Method Details
-
getRecordsAsynch
Description copied from interface:DNSAsynchLookupService
Retrieve dns records for the given host asynchronously- Specified by:
getRecordsAsynch
in 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
-