com.vaadin.flow.server.
Class FutureAccess
- java.lang.Object
-
- java.util.concurrent.FutureTask<Void>
-
- com.vaadin.flow.server.FutureAccess
-
All Implemented Interfaces:
public class FutureAccess extends FutureTask<Void>
Encapsulates a
Command
submitted usingVaadinSession.access(Command)
. This class is used internally by the framework and is not intended to be directly used by application developers.Since:
1.0
Author:
Vaadin Ltd
-
-
Constructor Summary
Constructors Constructor Description FutureAccess(VaadinSession session, Command command)
Creates an instance for the given command.
-
Method Summary
All Methods Modifier and Type Method Description Void
get()
void
handleError(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, toString
-
-
-
-
Constructor Detail
-
FutureAccess
public FutureAccess(VaadinSession session, Command command)
Creates an instance for the given command.
Parameters:
session
- the session to which the task belongscommand
- the command to run when this task is purged from the queue
-
-
Method Detail
-
get
public Void get() throws InterruptedException, ExecutionException
Specified by:
Overrides:
get
in classFutureTask<Void>
Throws:
-
handleError
public void handleError(Exception exception)
Handles exceptions thrown during the execution of this task.
Parameters:
exception
- the thrown exception.
-
-