Class 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

      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.Void get()  
      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, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 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
      • 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