Class NoLimitKdfExecutionLimiter
java.lang.Object
com.svenruppert.jsentinel.credential.password.limiter.NoLimitKdfExecutionLimiter
- All Implemented Interfaces:
KdfExecutionLimiter
Limiter that never blocks and never rejects. Useful for unit tests
and for environments where the operator decided to delegate concurrency
control elsewhere (e.g. a servlet container thread pool).
-
Nested Class Summary
Nested classes/interfaces inherited from interface KdfExecutionLimiter
KdfExecutionLimiter.Lease -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NoLimitKdfExecutionLimiter
public NoLimitKdfExecutionLimiter()
-
-
Method Details
-
acquire
Description copied from interface:KdfExecutionLimiterTries to acquire a KDF permit. Blocks up toKdfResourceBudget.maxWait()before giving up.- Specified by:
acquirein interfaceKdfExecutionLimiter- Returns:
- an
KdfExecutionLimiter.Leasethat must be released, orOptional.empty()when the limiter refused
-