org.mobicents.servlet.sip.core
Class SipApplicationDispatcherImpl.RequestTask

java.lang.Object
  extended by org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl.RequestTask
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
SipApplicationDispatcherImpl

protected class SipApplicationDispatcherImpl.RequestTask
extends java.lang.Object
implements java.lang.Runnable

This class is the task that will be run by the request thread pool executor Running the request dispatching in its own task is better since it won't block the thread from the sip stack. Since the sip stack serializes on transaction if the listener blocks too much or takes too much time to process the request (Sip Servlets accessing a DB or doing heavy computation) and retransmissions comes in and cannot get the jsip transaction lock a 503 Service Unavailable will be sent.

Author:
Jean Deruelle

Constructor Summary
SipApplicationDispatcherImpl.RequestTask(SipApplicationDispatcherImpl sipApplicationDispatcher, javax.sip.SipProvider sipProvider, SipServletRequestImpl sipServletRequest)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SipApplicationDispatcherImpl.RequestTask

public SipApplicationDispatcherImpl.RequestTask(SipApplicationDispatcherImpl sipApplicationDispatcher,
                                                javax.sip.SipProvider sipProvider,
                                                SipServletRequestImpl sipServletRequest)
Method Detail

run

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


Copyright © 2008. All Rights Reserved.