SMSLib 3.5.3

org.smslib.threading
Class AServiceThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.smslib.threading.AServiceThread
All Implemented Interfaces:
java.lang.Runnable

public abstract class AServiceThread
extends java.lang.Thread


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
AServiceThread(java.lang.String name, int delay, int initialDelay, boolean enabled)
           
 
Method Summary
 void cancel()
           
 void disable()
           
 void enable()
           
 int getDelay()
           
 int getInitialDelay()
           
 boolean isCanceled()
           
 boolean isEnabled()
           
abstract  void process()
           
 void run()
           
 void setDelay(int delay)
           
 void setInitialDelay(int initialDelay)
           
 
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, 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

AServiceThread

public AServiceThread(java.lang.String name,
                      int delay,
                      int initialDelay,
                      boolean enabled)
Method Detail

getDelay

public int getDelay()

setDelay

public void setDelay(int delay)

getInitialDelay

public int getInitialDelay()

setInitialDelay

public void setInitialDelay(int initialDelay)

isEnabled

public boolean isEnabled()

enable

public void enable()

disable

public void disable()

isCanceled

public boolean isCanceled()

cancel

public void cancel()

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

process

public abstract void process()
                      throws java.lang.Exception
Throws:
java.lang.Exception

SMSLib 3.5.3

(c) 2002-2011, http://smslib.org