Package com.vaadin.flow.server
Class FutureAccess
- All Implemented Interfaces:
Runnable,Future<Void>,RunnableFuture<Void>
Encapsulates a
Command submitted using
VaadinSession.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
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State -
Constructor Summary
ConstructorsConstructorDescriptionFutureAccess(VaadinSession session, Command command) Creates an instance for the given command. -
Method Summary
Modifier and TypeMethodDescriptionget()voidhandleError(Exception exception) Handles exceptions thrown during the execution of this task.Methods inherited from class java.util.concurrent.FutureTask
cancel, done, exceptionNow, get, isCancelled, isDone, resultNow, run, runAndReset, set, setException, state, toString
-
Constructor Details
-
FutureAccess
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 Details
-
get
- Specified by:
getin interfaceFuture<Void>- Overrides:
getin classFutureTask<Void>- Throws:
InterruptedExceptionExecutionException
-
handleError
Handles exceptions thrown during the execution of this task.- Parameters:
exception- the thrown exception.
-