Package org.eclipse.aether.impl
Interface NamedLockFactorySelector
- All Known Implementing Classes:
DefaultNamedLockFactorySelector
public interface NamedLockFactorySelector
Selector for system-wide use of named locks.
- Since:
- 2.0.17
-
Method Summary
Modifier and TypeMethodDescriptionReturns immutable set of available lock factory names, to be used for logging purposes or alike.longgetLockWaitTime(Map<String, ?> configuration) Returns the maximum amount of time to be blocked, while obtaining a named lock, based on configuration.getLockWaitTimeUnit(Map<String, ?> configuration) Returns the unit of maximum amount of time based on configuration.getNamedLockFactory(Map<String, ?> configuration) SelectsNamedLockFactorybased on configuration.
-
Method Details
-
getAvailableLockFactories
Returns immutable set of available lock factory names, to be used for logging purposes or alike. Never returnsnull. -
getNamedLockFactory
SelectsNamedLockFactorybased on configuration. Never returnsnullbut may throw in case of invalid configuration.- Parameters:
configuration- The configuration maps, must be notnull.- Throws:
IllegalArgumentException- In case of invalid configuration.
-
getLockWaitTime
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 notnull.- Throws:
IllegalArgumentException- In case of invalid configuration.
-
getLockWaitTimeUnit
Returns the unit of maximum amount of time based on configuration. Never returnsnullbut may throw in case of invalid configuration.- Parameters:
configuration- The configuration maps, must be notnull.- Throws:
IllegalArgumentException- In case of invalid configuration.
-