|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.james.jspf.impl.DNSServiceAsynchSimulator
public class DNSServiceAsynchSimulator
Wrap a DNSService an execute the calls asynch in a new Thread
Constructor Summary | |
---|---|
DNSServiceAsynchSimulator(DNSService service,
boolean multiThread)
|
Method Summary | |
---|---|
void |
getRecordsAsynch(DNSRequest request,
int id,
IResponseQueue responsePool)
Retrieve dns records for the given host asynchronously |
void |
run()
Run the async dns call in a new thread |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DNSServiceAsynchSimulator(DNSService service, boolean multiThread)
Method Detail |
---|
public void getRecordsAsynch(DNSRequest request, int id, IResponseQueue responsePool)
DNSAsynchLookupService
getRecordsAsynch
in interface DNSAsynchLookupService
request
- the dns requestid
- the identification key for the response.responsePool
- the queue where the response will be appended.DNSAsynchLookupService.getRecordsAsynch(org.apache.james.jspf.core.DNSRequest, int, org.apache.james.jspf.executor.IResponseQueue)
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |