IT. Expert System.

Android Reference



Class AsyncRunner

    • Constructor Detail

      • AsyncRunner

        public AsyncRunner(FilterContext context,
                   Class schedulerClass)
        Create a new asynchronous graph runner with the given filter context, and the given scheduler class. Must be created on the UI thread.
      • AsyncRunner

        public AsyncRunner(FilterContext context)
        Create a new asynchronous graph runner with the given filter context. Uses a default scheduler. Must be created on the UI thread.
    • Method Detail

      • setDoneCallback

        public void setDoneCallback(GraphRunner.OnRunnerDoneListener listener)
        Set a callback to be called in the UI thread once the AsyncRunner completes running a graph, whether the completion is due to a stop() call or the filters running out of data to process.
        Specified by:
        setDoneCallback in class GraphRunner
      • setGraph

        public void setGraph(FilterGraph graph)
        Sets the graph to be run. Will call prepare() on graph. Cannot be called when a graph is already running.
      • run

        public void run()
        Execute the graph in a background thread.
        Specified by:
        run in class GraphRunner
      • stop

        public void stop()
        Stop graph execution. This is an asynchronous call; register a callback with setDoneCallback to be notified of when the background processing has been completed. Calling stop will close the filter graph.
        Specified by:
        stop in class GraphRunner
      • close

        public void close()
        Description copied from class: GraphRunner
        Closes the filters in a graph. Can only be called if the graph is not running.
        Specified by:
        close in class GraphRunner
      • isRunning

        public boolean isRunning()
        Check if background processing is happening
        Specified by:
        isRunning in class GraphRunner
      • getError

        public Exception getError()
        Description copied from class: GraphRunner
        Returns the last exception that happened during an asynchronous run. Returns null if there is nothing to report.
        Specified by:
        getError in class GraphRunner


Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)





Java Script








Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 444 / 158852446. Delta: 0.02431 с