Interface DiskWriteAttributes

    • Method Detail

      • isSynchronous

        @Deprecated
        boolean isSynchronous()
        Deprecated.
        Returns true if this DiskWriteAttributes object configures synchronous writes.
        Returns:
        Returns true if writes to disk are synchronous and false otherwise
      • isRollOplogs

        boolean isRollOplogs()
        Deprecated.
        Returns true if the oplogs is to be rolled to a more condensed format (on disk)
        Returns:
        Returns true if the oplogs is to be rolled or false otherwise
      • getMaxOplogSize

        @Deprecated
        int getMaxOplogSize()
        Deprecated.
        as of 6.5 use DiskStore.getMaxOplogSize() instead.
        Get the maximum size in megabytes a single oplog (operation log) file should be
        Returns:
        the maximum size the operations log file can be
      • getTimeInterval

        @Deprecated
        long getTimeInterval()
        Deprecated.
        as of 6.5 use DiskStore.getTimeInterval() instead.
        Returns the number of milliseconds that can elapse before unwritten data is written to disk. If this DiskWriteAttributes configures synchronous writing, then timeInterval has no meaning.
        Returns:
        Returns the time interval in milliseconds that can elapse between two writes to disk
      • getBytesThreshold

        @Deprecated
        long getBytesThreshold()
        Deprecated.
        as of 6.5 use DiskStore.getQueueSize() instead.
        Returns the number of unwritten bytes of data that can be enqueued before being written to disk. If this DiskWriteAttributes configures synchronous writing, then bytesThreshold has no meaning.
        Returns:
        Returns the number of bytes that can be buffered before being written to disk
      • equals

        boolean equals​(java.lang.Object o)
        Deprecated.
        Two DiskWriteAttributes are equal if the both specify the synchronous writes, or they both specify asynchronous writes with the same time interval, bytes threshold, maxOplogSize and compaction values
        Overrides:
        equals in class java.lang.Object
        Returns:
        true if o is equal else false