Interface AnjayDownloadHandlers


  • public interface AnjayDownloadHandlers
    Interface specifying handlers to be called during download.
    • Method Detail

      • onNextBlock

        void onNextBlock​(byte[] data,
                         java.util.Optional<byte[]> etag)
                  throws java.lang.Exception
        Called after receiving a chunk of data from remote server.
        Parameters:
        data - Received chunk of data.
        etag - ETag of the data.
        Throws:
        java.lang.Exception - If an error occurred, in which case the download will be terminated with FAILED result.