Package org.alfresco.repo.download
Class DownloadStatusUpdateServiceImpl
- java.lang.Object
-
- org.alfresco.repo.download.DownloadStatusUpdateServiceImpl
-
- All Implemented Interfaces:
DownloadStatusUpdateService
public class DownloadStatusUpdateServiceImpl extends java.lang.Object implements DownloadStatusUpdateService
Implementation class responsible for update the status of a download node.- Author:
- Alex Miller
-
-
Constructor Summary
Constructors Constructor Description DownloadStatusUpdateServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetStorage(DownloadStorage storage)voidupdate(org.alfresco.service.cmr.repository.NodeRef nodeRef, DownloadStatus status, int sequenceNumber)Update and persist the status of the download.
-
-
-
Method Detail
-
setStorage
public void setStorage(DownloadStorage storage)
-
update
public void update(org.alfresco.service.cmr.repository.NodeRef nodeRef, DownloadStatus status, int sequenceNumber)Description copied from interface:DownloadStatusUpdateServiceUpdate and persist the status of the download. Implementations should only do this if sequenceNumber is greater than the sequenceNumber of the previous update, to prevent out of order updates.- Specified by:
updatein interfaceDownloadStatusUpdateService- Parameters:
nodeRef- The download node, whose status is to be updated.status- The new statussequenceNumber- int
-
-