@Component(value="persistentQueueDao") public class JsonPersistentQueueDAOImpl extends Object implements PersistentQueueDAO
| Constructor and Description |
|---|
JsonPersistentQueueDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDownloadToQueue(DownloadDetailsDTO download)
Adds the supplied download to the offline queue
|
List<DownloadDetailsDTO> |
getAllDownloads()
Returns a list of all the offline downloads in the order in which they were requested.
|
DownloadDetailsDTO |
getNextDownload()
Return the next offline download from the queue.
|
int |
getTotalDownloads()
Returns the total number of download that are on the queue
|
void |
init() |
void |
refreshFromPersistent()
Refreshes the list from the persistent data store
|
void |
removeDownloadFromQueue(DownloadDetailsDTO download)
Removes the supplied download from the queue
|
@PostConstruct public void init()
public void addDownloadToQueue(DownloadDetailsDTO download)
PersistentQueueDAOaddDownloadToQueue in interface PersistentQueueDAOPersistentQueueDAO.addDownloadToQueue(DownloadDetailsDTO)public DownloadDetailsDTO getNextDownload()
PersistentQueueDAOgetNextDownload in interface PersistentQueueDAOPersistentQueueDAO.getNextDownload()public int getTotalDownloads()
PersistentQueueDAOgetTotalDownloads in interface PersistentQueueDAOPersistentQueueDAO.getTotalDownloads()public void removeDownloadFromQueue(DownloadDetailsDTO download)
PersistentQueueDAOremoveDownloadFromQueue in interface PersistentQueueDAOPersistentQueueDAO.removeDownloadFromQueue(au.org.ala.biocache.dto.DownloadDetailsDTO)public List<DownloadDetailsDTO> getAllDownloads()
PersistentQueueDAOgetAllDownloads in interface PersistentQueueDAOPersistentQueueDAO.getAllDownloads()public void refreshFromPersistent()
PersistentQueueDAOrefreshFromPersistent in interface PersistentQueueDAOPersistentQueueDAO.refreshFromPersistent()Copyright © 2014. All rights reserved.