public static class LicenseProvider.Builder extends Object
LicenseProvider.forSource(String)
Modifier and Type | Method and Description |
---|---|
LicenseProvider |
build()
Builds the license provider.
|
LicenseProvider.Builder |
ignoreDuplicateCheckoutOnServer(boolean value)
Determines if the provider must try re-using a license already checked-out on license server
for the same user and feature.
|
LicenseProvider.Builder |
linger(int linger)
Sets the linger interval, in seconds, which determines the number of seconds
for a license to still be checked-out on server (i.e.
|
public LicenseProvider.Builder linger(int linger)
linger
- the number of seconds to keep the license checked out after checkin.public LicenseProvider.Builder ignoreDuplicateCheckoutOnServer(boolean value)
false
, which means a new license is consumed for every check-out request.value
- true
if the provider must reuse licenses for the same user and feature, false
otherwise.public LicenseProvider build() throws LicenseException
LicenseException
- if the license source is invalid.