org.apache.sandesha.server
Class ThreadPoolInvokeStrategy

java.lang.Object
  extended byorg.apache.sandesha.server.ThreadPoolInvokeStrategy
All Implemented Interfaces:
InvokeStrategy

public class ThreadPoolInvokeStrategy
extends java.lang.Object
implements InvokeStrategy

Use the Axis thread pool for handling web service invokes. Implementations of the RMInvokerWork are wrapped in a Runnable and passed into the pool.

Author:
Patrick Collins

Nested Class Summary
protected  class ThreadPoolInvokeStrategy.RMRunnableInvoker
          A Runnable wrapper for embedding RMInvokerWork

objects in their own threads.

 
Constructor Summary
ThreadPoolInvokeStrategy()
           
 
Method Summary
 void addParams(java.util.Map aParams)
           
protected  java.util.Map getParams()
           
protected  int getThreadPoolSize()
          Determine the size of the thread pool.
 void start()
          Creates the axis thread pool.
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadPoolInvokeStrategy

public ThreadPoolInvokeStrategy()
Method Detail

start

public void start()
Creates the axis thread pool.

Specified by:
start in interface InvokeStrategy
See Also:
InvokeStrategy.start()

stop

public void stop()
Specified by:
stop in interface InvokeStrategy
See Also:
InvokeStrategy.stop()

getThreadPoolSize

protected int getThreadPoolSize()
Determine the size of the thread pool. Defaults to value defined in Constants.INVOKER_THREADS if none was explicitly set via config.


addParams

public void addParams(java.util.Map aParams)
Specified by:
addParams in interface InvokeStrategy
See Also:
InvokeStrategy.addParams(java.util.Map)

getParams

protected java.util.Map getParams()