Class EncryptionConfiguration

    • Field Detail

      • DFLT_REENCRYPTION_RATE_MBPS

        public static final double DFLT_REENCRYPTION_RATE_MBPS
        Default re-encryption rate limit. The value is 0, which means that scan speed is not limited.
        See Also:
        Constant Field Values
      • DFLT_REENCRYPTION_BATCH_SIZE

        public static final int DFLT_REENCRYPTION_BATCH_SIZE
        Default number of pages that is scanned during reencryption under checkpoint lock. The value is 100.
        See Also:
        Constant Field Values
    • Constructor Detail

      • EncryptionConfiguration

        public EncryptionConfiguration()
        Creates valid encryption configuration with all default values.
      • EncryptionConfiguration

        public EncryptionConfiguration​(EncryptionConfiguration cfg)
        Constructs the copy of the configuration.
        Parameters:
        cfg - Configuration to copy.
    • Method Detail

      • getReencryptionRateLimit

        public double getReencryptionRateLimit()
        Gets re-encryption rate limit.
        Returns:
        Re-encryption rate limit in megabytes per second.
      • setReencryptionRateLimit

        public EncryptionConfiguration setReencryptionRateLimit​(double reencryptionRateLimit)
        Sets re-encryption rate limit.
        Parameters:
        reencryptionRateLimit - Re-encryption rate limit in megabytes per second.
        Returns:
        this for chaining.
      • getReencryptionBatchSize

        public int getReencryptionBatchSize()
        Gets the number of pages that is scanned during re-encryption under checkpoint lock.
        Returns:
        The number of pages that is scanned during re-encryption under checkpoint lock.
      • setReencryptionBatchSize

        public EncryptionConfiguration setReencryptionBatchSize​(int reencryptionBatchSize)
        Sets the number of pages that is scanned during re-encryption under checkpoint lock.
        Parameters:
        reencryptionBatchSize - The number of pages that is scanned during re-encryption under checkpoint lock.
        Returns:
        this for chaining.