java.lang.Objectjava.lang.Thread
com.globalcharge.android.GalWorker
public abstract class GalWorker
Abstract worker class representing a server task. Provides tidy up methods to cancel and clear ongoing tasks.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
GalWorker(ClientConfig config,
BillingManager billingManager,
PhoneInformation phoneInformation)
|
Method Summary | |
---|---|
abstract void |
deRegisterAllListeners()
|
void |
kill()
Exit the worker as soon as possible, call any final events and deregister listeners. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GalWorker(ClientConfig config, BillingManager billingManager, PhoneInformation phoneInformation)
Method Detail |
---|
public void kill()
public abstract void deRegisterAllListeners()