org.apache.james.jspf.impl
Class DNSJnioAsynchService

java.lang.Object
  extended by org.apache.james.jspf.impl.DNSJnioAsynchService
All Implemented Interfaces:
DNSAsynchLookupService

public class DNSJnioAsynchService
extends java.lang.Object
implements DNSAsynchLookupService


Constructor Summary
DNSJnioAsynchService(org.xbill.DNS.ExtendedNonblockingResolver resolver)
           
 
Method Summary
 void getRecordsAsynch(DNSRequest request, int id, IResponseQueue responsePool)
          Retrieve dns records for the given host asynchronously
 void setTimeout(int timeout)
          Set the timeout for the resolvers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DNSJnioAsynchService

public DNSJnioAsynchService(org.xbill.DNS.ExtendedNonblockingResolver resolver)
Method Detail

setTimeout

public void setTimeout(int timeout)
Set the timeout for the resolvers

Parameters:
timeout -

getRecordsAsynch

public void getRecordsAsynch(DNSRequest request,
                             int id,
                             IResponseQueue responsePool)
Description copied from interface: DNSAsynchLookupService
Retrieve dns records for the given host asynchronously

Specified by:
getRecordsAsynch in interface DNSAsynchLookupService
Parameters:
request - the dns request
id - the identification key for the response.
responsePool - the queue where the response will be appended.
See Also:
DNSAsynchLookupService.getRecordsAsynch(org.apache.james.jspf.core.DNSRequest, int, org.apache.james.jspf.executor.IResponseQueue)


Copyright © 2006-2009 The Apache Software Foundation. All Rights Reserved.