public interface SimpleTokenManager<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAllTokensToPool(Collection<T> tokens)
Adds a
Collection of tokens to the available token pool. |
boolean |
addTokenToPool(T token)
Adds a token to the available token pool.
|
T |
getNextAvailableToken()
Get an available token.
|
int |
numAvailableTokens()
Get the number of available tokens.
|
boolean addTokenToPool(T token)
token - Token to be addedboolean addAllTokensToPool(Collection<T> tokens)
Collection of tokens to the available token pool.tokens - Tokens to be addedT getNextAvailableToken()
int numAvailableTokens()
Copyright © 2020 The Apache Software Foundation. All rights reserved.