Package com.vaadin.server
Class VaadinSession.FutureAccess
- java.lang.Object
-
- java.util.concurrent.FutureTask<java.lang.Void>
-
- 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 aRunnablesubmitted usingVaadinSession.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
Constructors Constructor Description FutureAccess(VaadinSession session, java.lang.Runnable runnable)Creates an instance for the given runnable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Voidget()voidhandleError(java.lang.Exception exception)Handles exceptions thrown during the execution of this task.
-
-
-
Constructor Detail
-
FutureAccess
public FutureAccess(VaadinSession session, java.lang.Runnable runnable)
Creates an instance for the given runnable.- Parameters:
session- the session to which the task belongsrunnable- 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:
getin interfacejava.util.concurrent.Future<java.lang.Void>- Overrides:
getin classjava.util.concurrent.FutureTask<java.lang.Void>- Throws:
java.lang.InterruptedExceptionjava.util.concurrent.ExecutionException
-
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
-
-