com.vaadin.server
Class VaadinSession.FutureAccess

java.lang.Object
  extended by java.util.concurrent.FutureTask<java.lang.Void>
      extended by com.vaadin.server.VaadinSession.FutureAccess
All Implemented Interfaces:
java.lang.Runnable, java.util.concurrent.Future<java.lang.Void>, java.util.concurrent.RunnableFuture<java.lang.Void>
Enclosing class:
VaadinSession

public static class VaadinSession.FutureAccess
extends java.util.concurrent.FutureTask<java.lang.Void>

Encapsulates a Runnable submitted using VaadinSession.access(Runnable). This class is used internally by the framework and is not intended to be directly used by application developers.

Since:
7.1
Author:
Vaadin Ltd

Constructor Summary
VaadinSession.FutureAccess(VaadinSession session, java.lang.Runnable runnable)
          Creates an instance for the given runnable
 
Method Summary
 java.lang.Void get()
           
 java.util.Map<java.lang.Class<?>,CurrentInstance> getCurrentInstances()
          Gets the current instance values that should be used when running this task.
 void handleError(java.lang.Exception exception)
          Handles exceptions thrown during the execution of this task.
 
Methods inherited from class java.util.concurrent.FutureTask
cancel, done, get, isCancelled, isDone, run, runAndReset, set, setException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VaadinSession.FutureAccess

public VaadinSession.FutureAccess(VaadinSession session,
                                  java.lang.Runnable runnable)
Creates an instance for the given runnable

Parameters:
session - the session to which the task belongs
runnable - the runnable to run when this task is purged from the queue
Method Detail

get

public java.lang.Void get()
                   throws java.lang.InterruptedException,
                          java.util.concurrent.ExecutionException
Specified by:
get in interface java.util.concurrent.Future<java.lang.Void>
Overrides:
get in class java.util.concurrent.FutureTask<java.lang.Void>
Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException

getCurrentInstances

public java.util.Map<java.lang.Class<?>,CurrentInstance> getCurrentInstances()
Gets the current instance values that should be used when running this task.

Returns:
a map of current instances.
See Also:
CurrentInstance.restoreInstances(Map)

handleError

public void handleError(java.lang.Exception exception)
Handles exceptions thrown during the execution of this task.

Parameters:
exception - the thrown exception.
Since:
7.1.8


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.