Package org.directwebremoting.extend

Examples of org.directwebremoting.extend.TaskDispatcher


     * @param sessionId The {@link ScriptSession}.id of the browser window
     * @param task A code block to execute
     */
    public static void withSession(String sessionId, Runnable task)
    {
        TaskDispatcher taskDispatcher = TaskDispatcherFactory.get(ServerContextFactory.get());
        taskDispatcher.dispatchTask(new IdScriptSessionFilter(sessionId), task);
    }
View Full Code Here


     * For 99% of cases the former method will be much simpler to use.
     * @param serverContext The specific DWR context in which to execute
     */
    public static void withSession(ServerContext serverContext, String sessionId, Runnable task)
    {
        TaskDispatcher taskDispatcher = TaskDispatcherFactory.get(serverContext);
        taskDispatcher.dispatchTask(new IdScriptSessionFilter(sessionId), task);
    }
View Full Code Here

     * APIs. Using it directly may cause scaling problems
     * @return The list of current browser windows.
     */
    public static Collection<ScriptSession> getTargetSessions()
    {
        TaskDispatcher taskDispatcher = TaskDispatcherFactory.get();
        Collection<ScriptSession> sessions = taskDispatcher.getTargetSessions();
        if (sessions != null)
        {
            return sessions;
        }

View Full Code Here

TOP

Related Classes of org.directwebremoting.extend.TaskDispatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.