Module io.github.bucket4j.core
Interface LockIdSupplier<K>
- Type Parameters:
K- type of key
public interface LockIdSupplier<K>
Used by some inheritors of
AbstractLockBasedProxyManager
when it needs to calculate numeric value of locks.-
Field Summary
Fields -
Method Summary
-
Field Details
-
DEFAULT
-
-
Method Details
-
toLockId
Returns the lock-id specified with the key.- Parameters:
key- the key of bucket- Returns:
- id of lock specified with key
-