public class DNSServiceAsynchSimulator extends Object implements Runnable, DNSAsynchLookupService
| Constructor and Description |
|---|
DNSServiceAsynchSimulator(DNSService service,
boolean multiThread) |
| Modifier and Type | Method and Description |
|---|---|
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
|
public DNSServiceAsynchSimulator(DNSService service, boolean multiThread)
public void getRecordsAsynch(DNSRequest request, int id, IResponseQueue responsePool)
DNSAsynchLookupServicegetRecordsAsynch in interface DNSAsynchLookupServicerequest - 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)Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.