public class FileStoreConfigurationBuilder extends IdentityStoreConfigurationBuilder<FileIdentityStoreConfiguration,FileStoreConfigurationBuilder>
IdentityStoreConfigurationBuilder
implementation which knows how to build a
FileIdentityStoreConfiguration
.
Constructor and Description |
---|
FileStoreConfigurationBuilder(IdentityStoresConfigurationBuilder builder) |
Modifier and Type | Method and Description |
---|---|
FileStoreConfigurationBuilder |
asyncWrite(boolean asyncWrite)
Indicates that write operations should be done asynchronously.
|
FileStoreConfigurationBuilder |
asyncWriteThreadPool(int poolSize)
If asyncWrite is enabled, defines the size of the thread pool.
|
protected FileIdentityStoreConfiguration |
create()
Creates a new configuration.
|
FileStoreConfigurationBuilder |
preserveState(boolean preserveState)
Tells the store to preserve state between initializations.
|
protected FileStoreConfigurationBuilder |
readFrom(FileIdentityStoreConfiguration configuration)
Reads a pre-created configuration.
|
protected void |
validate()
Validates the internal state.
|
FileStoreConfigurationBuilder |
workingDirectory(String workingDirectory)
Defines the working directory that should be used to store data.
|
add, addContextInitializer, addCredentialHandler, file, getContextInitializers, getCredentialHandlerProperties, getCredentialHandlers, getGlobalRelationshipTypes, getSelfRelationshipTypes, getSupportedTypes, getUnsupportedTypes, isSupportAttributes, isSupportCredentials, isSupportPermissions, jpa, ldap, setCredentialHandlerProperty, supportAllFeatures, supportAttributes, supportCredentials, supportGlobalRelationship, supportPermissions, supportSelfRelationship, supportType, token, unsupportType
build, buildAll, named
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build, buildAll, named
public FileStoreConfigurationBuilder(IdentityStoresConfigurationBuilder builder)
public FileStoreConfigurationBuilder workingDirectory(String workingDirectory)
Defines the working directory that should be used to store data.
workingDirectory
- public FileStoreConfigurationBuilder preserveState(boolean preserveState)
Tells the store to preserve state between initializations. If true, previously stored data will be preserved.
This behavior defaults to false. Previously stored data will be always deleted.
preserveState
- public FileStoreConfigurationBuilder asyncWrite(boolean asyncWrite)
Indicates that write operations should be done asynchronously.
Defaults to false.
asyncWrite
- public FileStoreConfigurationBuilder asyncWriteThreadPool(int poolSize)
If asyncWrite is enabled, defines the size of the thread pool.
poolSize
- protected FileIdentityStoreConfiguration create()
Builder
Creates a new configuration.
create
in class Builder<FileIdentityStoreConfiguration>
protected void validate()
Builder
Validates the internal state.
protected FileStoreConfigurationBuilder readFrom(FileIdentityStoreConfiguration configuration)
Builder
Reads a pre-created configuration.
readFrom
in class IdentityStoreConfigurationBuilder<FileIdentityStoreConfiguration,FileStoreConfigurationBuilder>
Copyright © 2018 JBoss by Red Hat. All rights reserved.