root collection to use. Defaults to GridStore.DEFAULT_ROOT_COLLECTION.
mime type of the file. Defaults to GridStore.DEFAULT_CONTENT_TYPE.
size for the chunk. Defaults to Chunk.DEFAULT_CHUNK_SIZE.
arbitrary data the user wants to store.
the prefered read preference (ReadPreference.PRIMARY, ReadPreference.PRIMARY_PREFERRED, ReadPreference.SECONDARY, ReadPreference.SECONDARY_PREFERRED, ReadPreference.NEAREST).
{Int/String, > -1 || ‘majority’ || tag name} the write concern for the operation where < 1 is no acknowlegement of write and w >= 1, w = ‘majority’ or tag acknowledges the write
set the timeout for waiting for write concern to finish (combines with w option)
write waits for fsync before returning, from MongoDB 2.6 on, fsync cannot be combined with journal (default: false)
write waits for journal sync before returning (default: false)
size for the chunk.
size for the chunk. Defaults to Chunk.DEFAULT_CHUNK_SIZE.
mime type of the file.
mime type of the file. Defaults to GridStore.DEFAULT_CONTENT_TYPE.
write waits for fsync before returning, from MongoDB 2.6 on, fsync cannot be combined with journal (default: false)
write waits for journal sync before returning (default: false)
arbitrary data the user wants to store.
the prefered read preference (ReadPreference.PRIMARY, ReadPreference.PRIMARY_PREFERRED, ReadPreference.SECONDARY, ReadPreference.SECONDARY_PREFERRED, ReadPreference.NEAREST).
root collection to use.
root collection to use. Defaults to GridStore.DEFAULT_ROOT_COLLECTION.
{Int/String, > -1 || ‘majority’ || tag name} the write concern for the operation where < 1 is no acknowlegement of write and w >= 1, w = ‘majority’ or tag acknowledges the write
set the timeout for waiting for write concern to finish (combines with w option)
Grid Store Options