Package com.flashphoner.fpwcsapi.util
Class LooperExecutor
java.lang.Object
java.lang.Thread
com.flashphoner.fpwcsapi.util.LooperExecutor
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanvoidvoidvoidvoidrun()voidscheduleAtFixedRate(Runnable command, long periodMillis) Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
LooperExecutor
public LooperExecutor()
-
-
Method Details
-
run
public void run() -
requestStart
public void requestStart() -
requestStop
public void requestStop() -
checkOnLooperThread
public boolean checkOnLooperThread() -
scheduleAtFixedRate
-
cancelScheduledTasks
public void cancelScheduledTasks() -
execute
-