Class GridFSBuckets


  • @Deprecated
    public final class GridFSBuckets
    extends Object
    Deprecated.
    Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)
    A factory for GridFSBucket instances.
    Since:
    3.3
    • Method Detail

      • create

        public static GridFSBucket create​(MongoDatabase database)
        Deprecated.
        Create a new GridFS bucket with the default 'fs' bucket name
        Parameters:
        database - the database instance to use with GridFS
        Returns:
        the GridFSBucket
      • create

        public static GridFSBucket create​(MongoDatabase database,
                                          String bucketName)
        Deprecated.
        Create a new GridFS bucket with a custom bucket name
        Parameters:
        database - the database instance to use with GridFS
        bucketName - the custom bucket name to use
        Returns:
        the GridFSBucket