de.unikassel.android.sdcframework.persistence
Class AbstractDatabaseFullStrategy
java.lang.Object
de.unikassel.android.sdcframework.util.AbstractChainWorker<PersistentStorageManager>
de.unikassel.android.sdcframework.persistence.AbstractDatabaseFullStrategy
- All Implemented Interfaces:
- DatabaseFullStrategy, ChainWorker<PersistentStorageManager>
- Direct Known Subclasses:
- DeleteSamplesStrategy, NotificationStrategy, StopServiceStrategy, WaitStrategy
public abstract class AbstractDatabaseFullStrategy
- extends AbstractChainWorker<PersistentStorageManager>
- implements DatabaseFullStrategy
Abstract base class for a database full strategy type. It is calling its
successor to solve the problem if it fails.
The execution method is implemented as the try to process samples again.
Extending strategies should override the
process(PersistentStorageManager)
method to implement an own
strategy and call the method of the super class in the end for another try to
store samples.
- See Also:
WaitStrategy
,
DeleteSamplesStrategy
,
NotificationStrategy
,
StopServiceStrategy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDatabaseFullStrategy
public AbstractDatabaseFullStrategy()
- Constructor
process
protected boolean process(PersistentStorageManager storageManager)
- Description copied from class:
AbstractChainWorker
- Processing method of the worker
- Specified by:
process
in class AbstractChainWorker<PersistentStorageManager>
- Parameters:
storageManager
- the client
- Returns:
- true if successful