Package org.alfresco.repo.download
Class DownloadStatusUpdateServiceImpl
java.lang.Object
org.alfresco.repo.download.DownloadStatusUpdateServiceImpl
- All Implemented Interfaces:
DownloadStatusUpdateService
Implementation class responsible for update the status of a download node.
- Author:
- Alex Miller
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetStorage(DownloadStorage storage) voidupdate(NodeRef nodeRef, DownloadStatus status, int sequenceNumber) Update and persist the status of the download.
-
Constructor Details
-
DownloadStatusUpdateServiceImpl
public DownloadStatusUpdateServiceImpl()
-
-
Method Details
-
setStorage
-
update
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
-