|
10Duke Scale SDK for Java
|
Data class that stores tokens thread safely in memory for 10Duke Scale SDK for Java.
Thread safety provided by java.util.concurrent.ConcurrentLinkedQueue.
Public Member Functions | |
| List< TokenStoreLicenseCheckoutResult > | all () |
| Retrieves all currently held TokenStoreLicenseCheckoutResult objects. | |
| List< TokenStoreLicenseCheckoutResult > | listByProductName (final String productName) |
| Retrieves all TokenStoreLicenseCheckoutResult objects associated to given product name. | |
| TokenStoreLicenseCheckoutResult | findByLeaseId (final String leaseId) |
| Retrieves a TokenStoreLicenseCheckoutResult by its lease id. | |
| void | save (final TokenStoreLicenseCheckoutResult checkoutResult) |
| Stores a given TokenStoreLicenseCheckoutResult. | |
| void | removeSafelyByLeaseId (final String leaseId) |
| Removes a token by its lease id. | |
| List< TokenStoreLicenseCheckoutResult > tenduke.scale.api.InMemoryTokenStore.all | ( | ) |
Retrieves all currently held TokenStoreLicenseCheckoutResult objects.
Implements tenduke.scale.api.TokenStore.
| TokenStoreLicenseCheckoutResult tenduke.scale.api.InMemoryTokenStore.findByLeaseId | ( | final String | leaseId | ) |
Retrieves a TokenStoreLicenseCheckoutResult by its lease id.
| leaseId | for filtering by lease id. |
Implements tenduke.scale.api.TokenStore.
| List< TokenStoreLicenseCheckoutResult > tenduke.scale.api.InMemoryTokenStore.listByProductName | ( | final String | productName | ) |
Retrieves all TokenStoreLicenseCheckoutResult objects associated to given product name.
| productName | for filtering by product name. |
Implements tenduke.scale.api.TokenStore.
| void tenduke.scale.api.InMemoryTokenStore.removeSafelyByLeaseId | ( | final String | leaseId | ) |
Removes a token by its lease id.
Does not throw errors if the leaseId is not found.
| leaseId | used to identify the token. |
Implements tenduke.scale.api.TokenStore.
| void tenduke.scale.api.InMemoryTokenStore.save | ( | final TokenStoreLicenseCheckoutResult | checkoutResult | ) |
Stores a given TokenStoreLicenseCheckoutResult.
| checkoutResult | Object that contains the information used to checkout a license and the resulting license token to store. |
Implements tenduke.scale.api.TokenStore.