public final class GridFSBuckets extends Object
| 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,
String bucketName)
Create a new GridFS bucket with a custom bucket name
|
public static GridFSBucket create(MongoDatabase database)
'fs' bucket namedatabase - the database instance to use with GridFSpublic static GridFSBucket create(MongoDatabase database, String bucketName)
database - the database instance to use with GridFSbucketName - the custom bucket name to use