org.directwebremoting.extend
Interface TaskDispatcher

All Known Implementing Classes:
DefaultTaskDispatcher

public interface TaskDispatcher

We would like to do some reverse ajax work, but need something to find the ScriptSessions add act on them all.

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

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.
 

Method Detail

dispatchTask

void dispatchTask(ScriptSessionFilter filter,
                  java.lang.Runnable task)
Take a runnable action and run it against every ScriptSession that matches a specified filter.


getTargetSessions

java.util.Collection<ScriptSession> getTargetSessions()
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

Returns:
The list of current browser windows.

Copyright 2008