public static class PersistenceSettings.Builder extends Object
PersistenceSettings objects.| Modifier and Type | Method and Description |
|---|---|
PersistenceSettings |
build()
Construct an immutable instance of
PersistenceSettings. |
PersistenceSettings.Builder |
setLinuxKeyring(String collection,
String schemaName,
String secretLabel,
String attributeKey1,
String attributeValue1,
String attributeKey2,
String attributeValue2)
Augments this builder with Linux KeyRing settings.
|
PersistenceSettings.Builder |
setLinuxUseUnprotectedFileAsCacheStorage(boolean useUnprotectedFileAsCacheStorage)
Augments this builder with linux persistence settings to
use unprotected file as Cache storage.
|
PersistenceSettings.Builder |
setLockRetry(int delayMilliseconds,
int retryNumber)
Augments this builder with lock retry settings.
|
PersistenceSettings.Builder |
setMacKeychain(String service,
String account)
Augments this builder with mac keychain settings.
|
public PersistenceSettings.Builder setMacKeychain(String service, String account)
service - The mac keychain service.account - The mac keychain accountpublic PersistenceSettings.Builder setLinuxKeyring(String collection, String schemaName, String secretLabel, String attributeKey1, String attributeValue1, String attributeKey2, String attributeValue2)
collection - A collection aggregates multiple schema.
KeyRing defines 2 collections - "default' is a persisted schema
and "session" is an in-memory schema that is destroyed on logout.schemaName - Schema name is a logical container of secrets, similar to a namespace.secretLabel - A user readable label for the secret.attributeKey1 - A key for additional attribute1, that will be used to decorate the secret.attributeValue1 - A value for additional attribute1, that will be used to decorate the secret.attributeKey2 - A key for additional attribute2, that will be used to decorate the secret.attributeValue2 - A value for additional attribute2, that will be used to decorate the secret.public PersistenceSettings.Builder setLinuxUseUnprotectedFileAsCacheStorage(boolean useUnprotectedFileAsCacheStorage)
useUnprotectedFileAsCacheStorage - boolean valuepublic PersistenceSettings.Builder setLockRetry(int delayMilliseconds, int retryNumber)
delayMilliseconds - Delay between retries in ms, must be 1 or more.
Default value is 100 ms.retryNumber - Number of retries, must be 1 or more.
Default value is 60.public PersistenceSettings build()
PersistenceSettings.PersistenceSettings.Copyright © 2024. All rights reserved.