Class SchedulerWorkRunner

  • All Implemented Interfaces:
    com.spotify.mobius.disposables.Disposable, com.spotify.mobius.runners.WorkRunner

    public class SchedulerWorkRunner
    extends java.lang.Object
    implements com.spotify.mobius.runners.WorkRunner
    A WorkRunner that is backed by an Rx Scheduler for running work.
    • Constructor Summary

      Constructors 
      Constructor Description
      SchedulerWorkRunner​(rx.Scheduler scheduler)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()  
      void post​(java.lang.Runnable runnable)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SchedulerWorkRunner

        public SchedulerWorkRunner​(rx.Scheduler scheduler)
    • Method Detail

      • post

        public void post​(java.lang.Runnable runnable)
        Specified by:
        post in interface com.spotify.mobius.runners.WorkRunner
      • dispose

        public void dispose()
        Specified by:
        dispose in interface com.spotify.mobius.disposables.Disposable