public static class VaadinSession.FutureAccess extends FutureTask<Void>
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.Constructor and Description |
---|
FutureAccess(VaadinSession session,
Runnable runnable)
Creates an instance for the given runnable
|
Modifier and Type | Method and Description |
---|---|
Void |
get() |
Map<Class<?>,CurrentInstance> |
getCurrentInstances()
Gets the current instance values that should be used when running
this task.
|
void |
handleError(Exception exception)
Handles exceptions thrown during the execution of this task.
|
cancel, done, get, isCancelled, isDone, run, runAndReset, set, setException
public FutureAccess(VaadinSession session, Runnable runnable)
session
- the session to which the task belongsrunnable
- the runnable to run when this task is purged from the
queuepublic Void get() throws InterruptedException, ExecutionException
get
in interface Future<Void>
get
in class FutureTask<Void>
InterruptedException
ExecutionException
public Map<Class<?>,CurrentInstance> getCurrentInstances()
CurrentInstance.restoreInstances(Map)
public void handleError(Exception exception)
exception
- the thrown exception.Copyright © 2021 Vaadin Ltd. All rights reserved.