Interface NamedLockFactorySelector

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> getAvailableLockFactories()
      Returns immutable set of available lock factory names, to be used for logging purposes or alike.
      long getLockWaitTime​(java.util.Map<java.lang.String,​?> configuration)
      Returns the maximum amount of time to be blocked, while obtaining a named lock, based on configuration.
      java.util.concurrent.TimeUnit getLockWaitTimeUnit​(java.util.Map<java.lang.String,​?> configuration)
      Returns the unit of maximum amount of time based on configuration.
      org.eclipse.aether.named.NamedLockFactory getNamedLockFactory​(java.util.Map<java.lang.String,​?> configuration)
      Selects NamedLockFactory based on configuration.
    • Method Detail

      • getAvailableLockFactories

        java.util.Set<java.lang.String> getAvailableLockFactories()
        Returns immutable set of available lock factory names, to be used for logging purposes or alike. Never returns null.
      • getNamedLockFactory

        org.eclipse.aether.named.NamedLockFactory getNamedLockFactory​(java.util.Map<java.lang.String,​?> configuration)
        Selects NamedLockFactory based on configuration. Never returns null but may throw in case of invalid configuration.
        Parameters:
        configuration - The configuration maps, must be not null.
        Throws:
        java.lang.IllegalArgumentException - In case of invalid configuration.
      • getLockWaitTime

        long getLockWaitTime​(java.util.Map<java.lang.String,​?> configuration)
        Returns the maximum amount of time to be blocked, while obtaining a named lock, based on configuration. May throw in case of invalid configuration.
        Parameters:
        configuration - The configuration maps, must be not null.
        Throws:
        java.lang.IllegalArgumentException - In case of invalid configuration.
      • getLockWaitTimeUnit

        java.util.concurrent.TimeUnit getLockWaitTimeUnit​(java.util.Map<java.lang.String,​?> configuration)
        Returns the unit of maximum amount of time based on configuration. Never returns null but may throw in case of invalid configuration.
        Parameters:
        configuration - The configuration maps, must be not null.
        Throws:
        java.lang.IllegalArgumentException - In case of invalid configuration.