Class DownloadStatusUpdateServiceImpl

java.lang.Object
org.alfresco.repo.download.DownloadStatusUpdateServiceImpl
All Implemented Interfaces:
DownloadStatusUpdateService

public class DownloadStatusUpdateServiceImpl extends Object implements DownloadStatusUpdateService
Implementation class responsible for update the status of a download node.
Author:
Alex Miller
  • Constructor Details

    • DownloadStatusUpdateServiceImpl

      public DownloadStatusUpdateServiceImpl()
  • Method Details

    • setStorage

      public void setStorage(DownloadStorage storage)
    • update

      public void update(NodeRef nodeRef, DownloadStatus status, int sequenceNumber)
      Description copied from interface: DownloadStatusUpdateService
      Update 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:
      update in interface DownloadStatusUpdateService
      Parameters:
      nodeRef - The download node, whose status is to be updated.
      status - The new status
      sequenceNumber - int