Class StripedTokenLockProvider
java.lang.Object
com.atlassian.crowd.integration.http.StripedTokenLockProvider
- All Implemented Interfaces:
TokenLockProvider
Default implementation of
TokenLockProvider
, backed by Guava's Striped
- Since:
- 3.2.0
-
Constructor Summary
ConstructorDescriptionStripedTokenLockProvider
(int locksCount) StripedTokenLockProvider
(com.google.common.util.concurrent.Striped<Lock> striped) -
Method Summary
-
Constructor Details
-
StripedTokenLockProvider
public StripedTokenLockProvider() -
StripedTokenLockProvider
public StripedTokenLockProvider(int locksCount) -
StripedTokenLockProvider
-
-
Method Details
-
getLock
Description copied from interface:TokenLockProvider
Returns lock for given token- Specified by:
getLock
in interfaceTokenLockProvider
- Parameters:
token
- SSO token- Returns:
- lock
-