Package gaiasky.util

Class OneTimeRunnable

java.lang.Object
gaiasky.util.OneTimeRunnable
All Implemented Interfaces:
Runnable

public abstract class OneTimeRunnable extends Object implements Runnable
Wrapper class which handles a one-time update runnable. Use the post() method to publish it. The runnable will be published, run once, and unpublished.
  • Constructor Details

    • OneTimeRunnable

      public OneTimeRunnable(String name)
  • Method Details

    • post

      public void post()
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • process

      protected abstract void process()