net.sf.uadetector.datastore
Interface UpdateOperation

All Superinterfaces:
java.lang.Runnable
All Known Implementing Classes:
AbstractUpdateOperation

public interface UpdateOperation
extends java.lang.Runnable

Defines an update operation which will be executed within a executor service in background.

Author:
André Rouél

Field Summary
static long DEFAULT_UPDATE_INTERVAL
          The default interval to check for updates is once per day
 
Method Summary
 void call()
          This function checks whether updated UAS data are available and updates silently the data in a DataStore.
 long getLastUpdateCheck()
          Gets the time of the last update check in milliseconds.
 void shutdown()
          Shuts down the corresponding background executor.
 
Methods inherited from interface java.lang.Runnable
run
 

Field Detail

DEFAULT_UPDATE_INTERVAL

@Nonnegative
static final long DEFAULT_UPDATE_INTERVAL
The default interval to check for updates is once per day

See Also:
Constant Field Values
Method Detail

call

void call()
This function checks whether updated UAS data are available and updates silently the data in a DataStore.


getLastUpdateCheck

@Nonnegative
long getLastUpdateCheck()
Gets the time of the last update check in milliseconds.

Returns:
time of the last update check in milliseconds

shutdown

void shutdown()
Shuts down the corresponding background executor.



Copyright © 2011-2014. All Rights Reserved.