/** * Create a new GridFS bucket with a custom bucket name * * @param database the database instance to use with GridFS * @param bucketName the custom bucket name to use * @return the GridFSBucket */ public static GridFSBucket create(final MongoDatabase database, final String bucketName) { return new GridFSBucketImpl(database, bucketName); }
@Override public GridFSBucket withChunkSizeBytes(final int chunkSizeBytes) { return new GridFSBucketImpl(bucketName, chunkSizeBytes, filesCollection, chunksCollection, disableMD5); }
/** * Create a new GridFS bucket with the default {@code 'fs'} bucket name * * @param database the database instance to use with GridFS * @return the GridFSBucket */ public static GridFSBucket create(final MongoDatabase database) { return new GridFSBucketImpl(database); }
@Override public GridFSBucket withDisableMD5(final boolean disableMD5) { return new GridFSBucketImpl(bucketName, chunkSizeBytes, filesCollection, chunksCollection, disableMD5); }
@Override public GridFSBucket withReadPreference(final ReadPreference readPreference) { return new GridFSBucketImpl(bucketName, chunkSizeBytes, filesCollection.withReadPreference(readPreference), chunksCollection.withReadPreference(readPreference), disableMD5); }
@Override public GridFSBucket withWriteConcern(final WriteConcern writeConcern) { return new GridFSBucketImpl(bucketName, chunkSizeBytes, filesCollection.withWriteConcern(writeConcern), chunksCollection.withWriteConcern(writeConcern), disableMD5); }
@Override public GridFSBucket withReadConcern(final ReadConcern readConcern) { return new GridFSBucketImpl(bucketName, chunkSizeBytes, filesCollection.withReadConcern(readConcern), chunksCollection.withReadConcern(readConcern), disableMD5); }
/** * Create a new GridFS bucket with a custom bucket name * * @param database the database instance to use with GridFS * @param bucketName the custom bucket name to use * @return the GridFSBucket */ public static GridFSBucket create(final MongoDatabase database, final String bucketName) { return new GridFSBucketImpl(database, bucketName); }
/** * Create a new GridFS bucket with a custom bucket name * * @param database the database instance to use with GridFS * @param bucketName the custom bucket name to use * @return the GridFSBucket */ public static GridFSBucket create(final MongoDatabase database, final String bucketName) { return new GridFSBucketImpl(database, bucketName); }
/** * Create a new GridFS bucket with the default {@code 'fs'} bucket name * * @param database the database instance to use with GridFS * @return the GridFSBucket */ public static GridFSBucket create(final MongoDatabase database) { return new GridFSBucketImpl(database); }
@Override public GridFSBucket withChunkSizeBytes(final int chunkSizeBytes) { return new GridFSBucketImpl(bucketName, chunkSizeBytes, filesCollection, chunksCollection, disableMD5); }
/** * Create a new GridFS bucket with the default {@code 'fs'} bucket name * * @param database the database instance to use with GridFS * @return the GridFSBucket */ public static GridFSBucket create(final MongoDatabase database) { return new GridFSBucketImpl(database); }
@Override public GridFSBucket withChunkSizeBytes(final int chunkSizeBytes) { return new GridFSBucketImpl(bucketName, chunkSizeBytes, filesCollection, chunksCollection, disableMD5); }
@Override public GridFSBucket withDisableMD5(final boolean disableMD5) { return new GridFSBucketImpl(bucketName, chunkSizeBytes, filesCollection, chunksCollection, disableMD5); }
@Override public GridFSBucket withReadConcern(final ReadConcern readConcern) { return new GridFSBucketImpl(bucketName, chunkSizeBytes, filesCollection.withReadConcern(readConcern), chunksCollection.withReadConcern(readConcern), disableMD5); }
@Override public GridFSBucket withReadPreference(final ReadPreference readPreference) { return new GridFSBucketImpl(bucketName, chunkSizeBytes, filesCollection.withReadPreference(readPreference), chunksCollection.withReadPreference(readPreference), disableMD5); }
@Override public GridFSBucket withWriteConcern(final WriteConcern writeConcern) { return new GridFSBucketImpl(bucketName, chunkSizeBytes, filesCollection.withWriteConcern(writeConcern), chunksCollection.withWriteConcern(writeConcern), disableMD5); }
@Override public GridFSBucket withReadPreference(final ReadPreference readPreference) { return new GridFSBucketImpl(bucketName, chunkSizeBytes, filesCollection.withReadPreference(readPreference), chunksCollection.withReadPreference(readPreference), disableMD5); }
@Override public GridFSBucket withWriteConcern(final WriteConcern writeConcern) { return new GridFSBucketImpl(bucketName, chunkSizeBytes, filesCollection.withWriteConcern(writeConcern), chunksCollection.withWriteConcern(writeConcern), disableMD5); }
@Override public GridFSBucket withReadConcern(final ReadConcern readConcern) { return new GridFSBucketImpl(bucketName, chunkSizeBytes, filesCollection.withReadConcern(readConcern), chunksCollection.withReadConcern(readConcern), disableMD5); }