Interface Messenger.Task

  • Enclosing class:
    Messenger

    public static interface Messenger.Task

    Defines the required interface for tasks to be posted to this worker.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void destroy()
      This method is called for all tasks, even if run() was never called.
      void run()
      This method is called when being executed.
    • Method Detail

      • run

        void run()

        This method is called when being executed.

      • destroy

        void destroy()

        This method is called for all tasks, even if run() was never called.