Class CollectionPropertiesOptions


  • public class CollectionPropertiesOptions
    extends Object
    • Constructor Detail

      • CollectionPropertiesOptions

        public CollectionPropertiesOptions()
    • Method Detail

      • getWaitForSync

        public Boolean getWaitForSync()
      • waitForSync

        public CollectionPropertiesOptions waitForSync​(Boolean waitForSync)
        Parameters:
        waitForSync - If true then creating or changing a document will wait until the data has been synchronized to disk.
        Returns:
        options
      • getJournalSize

        public Long getJournalSize()
      • journalSize

        public CollectionPropertiesOptions journalSize​(Long journalSize)
        Parameters:
        journalSize - The maximal size of a journal or datafile in bytes. The value must be at least 1048576 (1 MB). Note that when changing the journalSize value, it will only have an effect for additional journals or datafiles that are created. Already existing journals or datafiles will not be affected.
        Returns:
        options