Class S3NioSpiConfiguration


  • public class S3NioSpiConfiguration
    extends java.lang.Object
    Object to hold configuration of the S3 NIO SPI
    • Field Detail

      • S3_SPI_READ_MAX_FRAGMENT_SIZE_PROPERTY

        public static final java.lang.String S3_SPI_READ_MAX_FRAGMENT_SIZE_PROPERTY
        The name of the maximum fragment size property
        See Also:
        Constant Field Values
      • S3_SPI_READ_MAX_FRAGMENT_SIZE_DEFAULT

        public static final java.lang.String S3_SPI_READ_MAX_FRAGMENT_SIZE_DEFAULT
        The default value of the maximum fragment size property
        See Also:
        Constant Field Values
      • S3_SPI_READ_MAX_FRAGMENT_NUMBER_PROPERTY

        public static final java.lang.String S3_SPI_READ_MAX_FRAGMENT_NUMBER_PROPERTY
        The name of the maximum fragment number property
        See Also:
        Constant Field Values
      • S3_SPI_READ_MAX_FRAGMENT_NUMBER_DEFAULT

        public static final java.lang.String S3_SPI_READ_MAX_FRAGMENT_NUMBER_DEFAULT
        The default value of the maximum fragment size property
        See Also:
        Constant Field Values
    • Constructor Detail

      • S3NioSpiConfiguration

        public S3NioSpiConfiguration()
        Create a new, empty configuration
      • S3NioSpiConfiguration

        protected S3NioSpiConfiguration​(java.util.Properties overrides)
        Create a new configuration with overrides
        Parameters:
        overrides - the overrides
    • Method Detail

      • getMaxFragmentSize

        public int getMaxFragmentSize()
        Get the value of the Maximum Fragment Size
        Returns:
        the configured value or the default if not overridden
      • getMaxFragmentNumber

        public int getMaxFragmentNumber()
        Get the value of the Maximum Fragment Number
        Returns:
        the configured value or the default if not overridden
      • convertPropertyNameToEnvVar

        protected java.lang.String convertPropertyNameToEnvVar​(java.lang.String propertyName)
        Generates an environment variable name from a property name. E.g 'some.property' becomes 'SOME_PROPERTY'
        Parameters:
        propertyName - the name to convert
        Returns:
        the converted name