Class AsyncPool


  • public class AsyncPool
    extends java.lang.Object
    The set of currently active and recently completed tasks.
    • Method Detail

      • submit

        public AsyncTask submit​(java.lang.Runnable task,
                                java.lang.String displayName,
                                DataService dataService,
                                long requestId)
      • tasks

        public java.util.Collection<AsyncTask> tasks()
      • finished

        public void finished​(AsyncTask task)
      • getRunningTask

        public AsyncTask getRunningTask​(java.lang.String taskId)
      • getTask

        public AsyncTask getTask​(java.lang.String taskId)
        Get a task - whether running or finished. Return null for no such task and also retired tasks. Only a limited number of old, finished tasks are remembered.