de.unikassel.android.sdcframework.util.facade
Interface WorkerThread

Package class diagram package WorkerThread
All Known Subinterfaces:
AsynchrounousSampleObserver, EventDispatcher<T,U>, PersistentStorageManager, SampleBroadcastService, TransferManager
All Known Implementing Classes:
AbstractAsynchrounousSampleObserver, AbstractEventDispatcherImpl, AbstractWorkerThread, EventDispatcherImpl, LogfileManager, Logger, PersistentStorageManagerImpl, SampleBroadcastServiceImpl, SampleReceivingDeviceScanner.ScanWorkerThread, TimeProvider.UpdateThread, TransferManagerImpl

public interface WorkerThread

Interface for worker threads.

See Also:
AbstractWorkerThread

Method Summary
 void doTerminate()
          Does stop current work and trigger thread termination
 boolean hasTerminated()
          Getter for the terminated flag
 boolean isLogging()
          Getter for the logging flag
 boolean isWorking()
          Getter for the working flag
 void setLogging(boolean doLog)
          Setter for the logging flag
 void startWork()
          Does start working if thread is not in working state
 void stopWork()
          Does stop working if thread is in working state
 

Method Detail

isWorking

boolean isWorking()
Getter for the working flag

Returns:
the working flag

setLogging

void setLogging(boolean doLog)
Setter for the logging flag

Parameters:
doLog - flag if logging should be done

isLogging

boolean isLogging()
Getter for the logging flag

Returns:
the logging flag

hasTerminated

boolean hasTerminated()
Getter for the terminated flag

Returns:
the terminated flag

doTerminate

void doTerminate()
Does stop current work and trigger thread termination


startWork

void startWork()
Does start working if thread is not in working state


stopWork

void stopWork()
Does stop working if thread is in working state