Interface DownloadStatusUpdateService

All Known Implementing Classes:
DownloadStatusUpdateServiceImpl

public interface DownloadStatusUpdateService
Service for updating the status of a download.
Author:
Alex Miller
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    update(NodeRef nodeRef, DownloadStatus status, int sequenceNumber)
    Update and persist the status of the download.
  • Method Details

    • update

      void update(NodeRef nodeRef, DownloadStatus status, int sequenceNumber)
      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.
      Parameters:
      nodeRef - The download node, whose status is to be updated.
      status - The new status
      sequenceNumber - int