Class GridFSBuckets
java.lang.Object
com.mongodb.reactivestreams.client.gridfs.GridFSBuckets
A factory for GridFSBucket instances.
 
Requires the concrete MongoDatabaseImpl implementation of the MongoDatabase interface.
- Since:
- 1.3
- 
Method SummaryModifier and TypeMethodDescriptionstatic GridFSBucketcreate(MongoDatabase database) Create a new GridFS bucket with the default'fs'bucket namestatic GridFSBucketcreate(MongoDatabase database, String bucketName) Create a new GridFS bucket with a custom bucket name
- 
Method Details- 
createCreate a new GridFS bucket with the default'fs'bucket nameRequires the concrete MongoDatabaseImplimplementation of the MongoDatabase interface.- Parameters:
- database- the database instance to use with GridFS.
- Returns:
- the GridFSBucket
 
- 
createCreate a new GridFS bucket with a custom bucket nameRequires the concrete MongoDatabaseImplimplementation of the MongoDatabase interface.- Parameters:
- database- the database instance to use with GridFS
- bucketName- the custom bucket name to use
- Returns:
- the GridFSBucket
 
 
-