| java.lang.Object com.sun.portal.container.portlet.impl.DispatcherState
DispatcherState | public class DispatcherState (Code) | | DispatcherState is the class that keeps the state information about
what portlets have called the dispatcher to PAE. It controls which
portlets can safely call the dispatcher to PAE and which portlets must
wait. DispatcherState objects are stored as HttpServletRequest attribute
by PortletContainer. Since there is no synchronizing code in this class,
the user (PortletContainer) must make sure it syncs around calls to the
class.
|
Method Summary | |
public boolean | canEnter(String appName, boolean portletSessionEnabled, boolean serializeAll) Return whether the portlet can safely use dispatcher to PAE. | public boolean | exit() Return whether the portlet is the last one to exit the critical section
for dispatcher to PAE. |
canEnter | public boolean canEnter(String appName, boolean portletSessionEnabled, boolean serializeAll)(Code) | | Return whether the portlet can safely use dispatcher to PAE. If the
return value is false, the caller should call wait(). It will be woke
up by notifyAll() when all the portlets have exited the ciritical
section. However, the portlet should call canEnter() again to make
sure it is save to enter the cirtical section after being waken up.
Parameters: appName - application name the portlet belongs to. Parameters: portletSessionless - ture if the portlet does not use session,false otherwise. Parameters: serializeAll - ture if serialization is needed at all time. ture if the portlet can safely use the dispatcher to PAE,false otherwise. |
exit | public boolean exit()(Code) | | Return whether the portlet is the last one to exit the critical section
for dispatcher to PAE. If the return value is true, the caller should
call wakeThreads() to wake up waiting threads.
ture when it is the last portlet to exit critical section,false otherwise. |
|
|