public class BsonBinaryWriterSettings extends Object
Constructor | Description |
---|---|
BsonBinaryWriterSettings() |
Creates a new instance of the settings with
Integer.MAX_VALUE as the maximum document size. |
BsonBinaryWriterSettings(int maxDocumentSize) |
Creates a new instance of the settings with the given maximum document size.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getMaxDocumentSize() |
Gets the maximum size for BSON documents.
|
public BsonBinaryWriterSettings(int maxDocumentSize)
maxDocumentSize
- the maximum document size.public BsonBinaryWriterSettings()
Integer.MAX_VALUE
as the maximum document size.