com.txtnation.android
Class GalWorker

java.lang.Object
  extended by java.lang.Thread
      extended by com.txtnation.android.GalWorker
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
AcknowledgementWorker, BillingTokenWorker, CancelSubscriptionWorker, DirectBillingRequestWorker, DirectBillResultPollingWorker, FirstHitWorker, MoSendingWorker, PremiumSMSBillingFailureWorker, ProductDetailWorker, SubscriptionInfoWorker

public abstract class GalWorker
extends java.lang.Thread

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

GalWorker

public GalWorker(ClientConfig config,
                 BillingManager billingManager,
                 PhoneInformation phoneInformation)
Method Detail

kill

public void kill()
Exit the worker as soon as possible, call any final events and deregister listeners.


deRegisterAllListeners

public abstract void deRegisterAllListeners()