org.apache.james.jspf.executor
Class StagedMultipleSPFExecutor

java.lang.Object
  extended by org.apache.james.jspf.executor.StagedMultipleSPFExecutor
All Implemented Interfaces:
java.lang.Runnable, SPFExecutor

public class StagedMultipleSPFExecutor
extends java.lang.Object
implements SPFExecutor, java.lang.Runnable

Async implementation of SPFExecutor


Constructor Summary
StagedMultipleSPFExecutor(Logger log, DNSAsynchLookupService service)
           
 
Method Summary
 void execute(SPFSession session, FutureSPFResult result)
          Execute the non-blocking part of the processing and returns.
 void execute(SPFSession session, FutureSPFResult result, boolean throttle)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StagedMultipleSPFExecutor

public StagedMultipleSPFExecutor(Logger log,
                                 DNSAsynchLookupService service)
Method Detail

execute

public void execute(SPFSession session,
                    FutureSPFResult result)
Execute the non-blocking part of the processing and returns. If the working queue is full (50 pending responses) this method will not return until the queue is again not full.

Specified by:
execute in interface SPFExecutor
See Also:
SPFExecutor.execute(org.apache.james.jspf.core.SPFSession, org.apache.james.jspf.executor.FutureSPFResult)

execute

public void execute(SPFSession session,
                    FutureSPFResult result,
                    boolean throttle)

run

public void run()
Specified by:
run in interface java.lang.Runnable


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