public final class GridFSBuckets
extends java.lang.Object
Requires the concrete MongoDatabaseImpl
implementation of the MongoDatabase interface.
Modifier and Type | Method and Description |
---|---|
static GridFSBucket |
create(MongoDatabase database)
Create a new GridFS bucket with the default
'fs' bucket name |
static GridFSBucket |
create(MongoDatabase database,
java.lang.String bucketName)
Create a new GridFS bucket with a custom bucket name
|
public static GridFSBucket create(MongoDatabase database)
'fs'
bucket name
Requires the concrete MongoDatabaseImpl
implementation of the MongoDatabase interface.
database
- the database instance to use with GridFS.public static GridFSBucket create(MongoDatabase database, java.lang.String bucketName)
Requires the concrete MongoDatabaseImpl
implementation of the MongoDatabase interface.
database
- the database instance to use with GridFSbucketName
- the custom bucket name to use