Class LooperExecutor

java.lang.Object
java.lang.Thread
com.flashphoner.fpwcsapi.util.LooperExecutor
All Implemented Interfaces:
Runnable, Executor

public class LooperExecutor extends Thread implements Executor
Looper based executor class. This is needed because WebSocketClient from autobanh requires the thread to have a looper. The class is used in WebSocketRTCClient/WebSocketChannelClient.
  • Constructor Details

    • LooperExecutor

      public LooperExecutor()
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • requestStart

      public void requestStart()
    • requestStop

      public void requestStop()
    • checkOnLooperThread

      public boolean checkOnLooperThread()
    • scheduleAtFixedRate

      public void scheduleAtFixedRate(Runnable command, long periodMillis)
    • cancelScheduledTasks

      public void cancelScheduledTasks()
    • execute

      public void execute(Runnable runnable)
      Specified by:
      execute in interface Executor