Interface DownsamplerSpiRegistry

  • All Known Implementing Classes:
    DownsamplerSpiRegistryImpl

    public interface DownsamplerSpiRegistry
    Created by obarrile on 12/04/2019.
    • Method Detail

      • loadDownsamplerSpis

        void loadDownsamplerSpis()
        Loads the SPIs defined in META-INF/services.
      • getDownsamplerSpis

        Set<DownsamplerSpi> getDownsamplerSpis()
        Returns:
        The set of all registered downsampler SPIs.
      • getDownsamplerSpi

        DownsamplerSpi getDownsamplerSpi​(String alias)
        Gets a registered upsampler SPI.
        Parameters:
        alias - a name identifying the upsampler SPI.
        Returns:
        the upsampler SPI, or null
      • addDownsamplerSpi

        boolean addDownsamplerSpi​(DownsamplerSpi downsamplerSpi)
        Adds the given downsamplerSpi to this registry.
        Parameters:
        downsamplerSpi - the SPI to add
        Returns:
        true, if the DownsamplerSpi could be successfully added, otherwise false
      • addDownsamplerSpi

        boolean addDownsamplerSpi​(String downsamplerAlias,
                                  DownsamplerSpi downsamplerSpi)
        Adds the given downsamplerSpi to this registry.
        Parameters:
        downsamplerSpi - the SPI to add
        Returns:
        true, if the DownsamplerSpi could be successfully added, otherwise false
      • removeDownsamplerSpi

        boolean removeDownsamplerSpi​(DownsamplerSpi downsamplerSpi)
        Removes the given downsamplerSpi this registry.
        Parameters:
        downsamplerSpi - the SPI to remove
        Returns:
        true, if the SPI could be removed, otherwise false
      • getAliases

        Set getAliases()
        Gets a set of all aliases
        Returns:
        the Set<string> of alias keys