K - The type of the internally used resource identifierspublic class MultiLockProviderFactory<K> extends Object implements Supplier<MultiLockProvider<K>>
Supplier for MultiLockProvider instances.
Instances can only be retrieved by the static getters
getHashBasedInstance() and getTreeBasedInstance().| Modifier and Type | Method and Description |
|---|---|
MultiLockProvider<K> |
get() |
static <K> MultiLockProviderFactory<K> |
getHashBasedInstance()
Returns the hash-based
MultiLockProviderFactory instance which
manages resource identifiers using HashMaps. |
static <K> MultiLockProviderFactory<K> |
getTreeBasedInstance()
Returns the tree-based
MultiLockProviderFactory instance which
manages resource identifiers using TreeMaps. |
public static <K> MultiLockProviderFactory<K> getHashBasedInstance()
MultiLockProviderFactory instance which
manages resource identifiers using HashMaps.K - The type of the internally used resource identifierspublic static <K> MultiLockProviderFactory<K> getTreeBasedInstance()
MultiLockProviderFactory instance which
manages resource identifiers using TreeMaps.K - The type of the internally used resource identifierspublic MultiLockProvider<K> get()
get in interface Supplier<MultiLockProvider<K>>Copyright © 2017. All rights reserved.