Class DefaultBatchHandler

    • Method Detail

      • getBatch

        public Batch getBatch​(String batchId)
        Description copied from interface: BatchHandler
        Attempts to fetch a batch with the given id.
        Parameters:
        batchId - the batch id to fetch
        Returns:
        the batch with the given id, or null if not found
      • completeUpload

        public boolean completeUpload​(String batchId,
                                      String fileIndex,
                                      BatchFileInfo fileInfo)
        Description copied from interface: BatchHandler
        Callback for the batch handler to execute post-upload actions. This is only typically used in third-party batch handlers.
        Parameters:
        batchId - the batch id
        fileIndex - the file index within the batch
        fileInfo - file information regarting the uploaded file
        Returns:
        true if the action was success
      • refreshToken

        public Map<String,​ObjectrefreshToken​(String batchId)
        Description copied from interface: BatchHandler
        Attempts to renew the credentials associated to this batch handler. This is only typically used in third-party batch handlers.
        Parameters:
        batchId - the batch id
        Returns:
        the new credentials