org.directwebremoting.impl
Class DefaultTaskDispatcher

java.lang.Object
  extended by org.directwebremoting.impl.DefaultTaskDispatcher
All Implemented Interfaces:
TaskDispatcher

public class DefaultTaskDispatcher
extends java.lang.Object
implements TaskDispatcher

Default single node implementation of TaskDispatcher

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
DefaultTaskDispatcher()
           
 
Method Summary
 void dispatchTask(ScriptSessionFilter filter, java.lang.Runnable task)
          Take a runnable action and run it against every ScriptSession that matches a specified filter.
 java.util.Collection<ScriptSession> getTargetSessions()
          This method discovers the sessions that are currently being targeted by browser updates.
 void setScriptSessionManager(ScriptSessionManager scriptSessionManager)
          Connection to the DwrServlet that we are attached to
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTaskDispatcher

public DefaultTaskDispatcher()
Method Detail

dispatchTask

public void dispatchTask(ScriptSessionFilter filter,
                         java.lang.Runnable task)
Description copied from interface: TaskDispatcher
Take a runnable action and run it against every ScriptSession that matches a specified filter.

Specified by:
dispatchTask in interface TaskDispatcher

getTargetSessions

public java.util.Collection<ScriptSession> getTargetSessions()
Description copied from interface: TaskDispatcher
This method discovers the sessions that are currently being targeted by browser updates.

It will generally only be useful to authors of reverse ajax UI proxy APIs. Using it directly may cause scaling problems

Specified by:
getTargetSessions in interface TaskDispatcher
Returns:
The list of current browser windows.

setScriptSessionManager

public void setScriptSessionManager(ScriptSessionManager scriptSessionManager)
Connection to the DwrServlet that we are attached to


Copyright 2008