Interface BackupMapConfig

    • Method Detail

      • resolveType

        int resolveType​(ParameterResolver resolver,
                        MapBuilder bldrPrimaryMap)
        Resolve the backup map type using the configuration specified by the application. The primary map is also need in special cases to determine the type.
        Parameters:
        resolver - the ParameterResolver
        bldrPrimaryMap - the primary map builder which may be used to determine the backup type
        Returns:
        the backup map type enumerated in BackingMapScheme
      • getBackupSchemeName

        String getBackupSchemeName​(ParameterResolver resolver)
        Return the name of the caching scheme to use as a backup map. Note that the scheme name is used as a key to lookup the scheme in the cache mapping. This is in contrast with the scheme name in the base AbstractScheme class which self-identifies a scheme object.
        Parameters:
        resolver - the ParameterResolver
        Returns:
        the scheme name
      • getDirectory

        String getDirectory​(ParameterResolver resolver)
        Return the root directory where the disk persistence manager stores files. This is only valid for file-mapped type.
        Parameters:
        resolver - the ParameterResolver
        Returns:
        the root directory
      • getInitialSize

        int getInitialSize​(ParameterResolver resolver)
        Return the initial buffer size in bytes for off-heap and file-mapped backup maps.
        Parameters:
        resolver - the ParameterResolver
        Returns:
        the write maximum batch size
      • getMaximumSize

        int getMaximumSize​(ParameterResolver resolver)
        Return the maximum buffer size in bytes for off-heap and file-mapped backup maps.
        Parameters:
        resolver - the ParameterResolver
        Returns:
        the write maximum buffer size