public interface FileGetCompletionCallback extends GetCompletionCallback
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getCompletionFile()
Get the final location of the downloaded data.
|
void |
onSuccess(java.io.File tempFile,
long length,
ClientMetadata metadata,
ClientGetState state,
ClientContext context)
Call when the download has completed and the tempFile contains the downloaded data, but
may be too long.
|
onBlockSetFinished, onExpectedMIME, onExpectedSize, onExpectedTopSize, onFailure, onFinalizedMetadata, onHashes, onSplitfileCompatibilityMode, onSuccess, onTransitionjava.io.File getCompletionFile()
void onSuccess(java.io.File tempFile,
long length,
ClientMetadata metadata,
ClientGetState state,
ClientContext context)
tempFile - A file in the same directory as the completion file, containing the
downloaded data.length - The length of the downloaded data.metadata - The MIME type of the downloaded data.state - The calling ClientGetState.context - Contains run-time support structures such as executors, temporary storage
factories etc. Not static because we want to be able to run multiple nodes in one VM for
tests etc.