Package com.mongodb.client.gridfs.model
Class GridFSDownloadByNameOptions
- java.lang.Object
-
- com.mongodb.client.gridfs.model.GridFSDownloadByNameOptions
-
Deprecated.useGridFSDownloadOptions
instead.
@Deprecated public final class GridFSDownloadByNameOptions extends Object
The GridFS download by name optionsControls the selection of the revision to download
- Since:
- 3.1
-
-
Constructor Summary
Constructors Constructor Description GridFSDownloadByNameOptions()
Deprecated.Download the most recent version of the file.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
getRevision()
Deprecated.Gets the revision to download identifierGridFSDownloadByNameOptions
revision(int revision)
Deprecated.Set the revision of the file to retrieve.
-
-
-
Method Detail
-
revision
public GridFSDownloadByNameOptions revision(int revision)
Deprecated.Set the revision of the file to retrieve.Revision numbers are defined as follows:
- 0 = the original stored file
- 1 = the first revision
- 2 = the second revision
- etc..
- -2 = the second most recent revision
- -1 = the most recent revision
- Parameters:
revision
- the file revision to download- Returns:
- this
-
getRevision
public int getRevision()
Deprecated.Gets the revision to download identifier- Returns:
- the revision to download identifier
-
-