Class StrategyRpcClient.FileUploadObserver

    • Field Detail

      • bytesUploaded

        private double bytesUploaded
        indicates the total number of bytes uploaded so far
      • fileSize

        private double fileSize
        indicates the total size of the file to be uploaded
      • completed

        private boolean completed
        indicates if the file upload has completed or not
      • uploadError

        private Throwable uploadError
        holds the error that occurred during upload, if any
    • Constructor Detail

      • FileUploadObserver

        public FileUploadObserver​(FileUploadRequest inRequest)
        Create a new FileUploadObserver instance.
        Parameters:
        inRequest - a FileUploadRequest value
    • Method Detail

      • incrementBytesUploaded

        public void incrementBytesUploaded​(int inSize)
        Increment the bytes uploaded value.
        Parameters:
        inSize - an int value
      • setFileSize

        private void setFileSize​(long inFileSize)
        Sets the size of the file to be uploaded.
        Parameters:
        inFileSize - a long value