public class RemoteCacheConfigurationBuilder extends Object implements Builder<RemoteCacheConfiguration>
| Modifier and Type | Method and Description |
|---|---|
RemoteCacheConfigurationBuilder |
configuration(String configuration)
Specifies the declarative configuration to be used to create the cache if it doesn't already exist on the server.
|
RemoteCacheConfigurationBuilder |
configurationURI(URI uri)
Specifies a URI pointing to the declarative configuration to be used to create the cache if it doesn't already exist on the server.
|
RemoteCacheConfiguration |
create()
Create the configuration bean
|
RemoteCacheConfigurationBuilder |
forceReturnValues(boolean forceReturnValues)
Whether or not to implicitly FORCE_RETURN_VALUE for all calls to this cache.
|
RemoteCacheConfigurationBuilder |
nearCacheFactory(NearCacheFactory factory)
Specifies a
NearCacheFactory which is responsible for creating NearCache instances. |
RemoteCacheConfigurationBuilder |
nearCacheMaxEntries(int maxEntries)
Specifies the maximum number of entries that will be held in the near cache.
|
RemoteCacheConfigurationBuilder |
nearCacheMode(NearCacheMode mode)
Specifies the near caching mode.
|
Builder<?> |
read(RemoteCacheConfiguration template)
Reads the configuration from an already created configuration bean into this builder.
|
RemoteCacheConfigurationBuilder |
templateName(DefaultTemplate template)
Specifies one of the default templates to be used to create the cache if it doesn't already exist on the server.
|
RemoteCacheConfigurationBuilder |
templateName(String templateName)
Specifies the name of a template to be used to create the cache if it doesn't already exist on the server.
|
RemoteCacheConfigurationBuilder |
transactionManager(TransactionManager manager)
The
TransactionManager to use for the cache |
RemoteCacheConfigurationBuilder |
transactionMode(TransactionMode mode)
The
TransactionMode in which a RemoteCache will be enlisted. |
void |
validate()
Validate the data in this builder before building the configuration bean
|
ConfigurationBuilder |
withProperties(Properties properties) |
public RemoteCacheConfigurationBuilder forceReturnValues(boolean forceReturnValues)
public RemoteCacheConfigurationBuilder nearCacheMode(NearCacheMode mode)
NearCacheMode for details on the available modes.mode - one of NearCacheModepublic RemoteCacheConfigurationBuilder nearCacheMaxEntries(int maxEntries)
nearCacheMode(NearCacheMode) is not NearCacheMode.DISABLED.maxEntries - maximum entries in the near cache.public RemoteCacheConfigurationBuilder nearCacheFactory(NearCacheFactory factory)
NearCacheFactory which is responsible for creating NearCache instances.factory - a NearCacheFactorypublic RemoteCacheConfigurationBuilder configuration(String configuration)
configuration - the XML representation of a cache configuration.public RemoteCacheConfigurationBuilder configurationURI(URI uri)
uri - the URI of the configuration.public RemoteCacheConfigurationBuilder templateName(String templateName)
templateName - the name of the template.public RemoteCacheConfigurationBuilder templateName(DefaultTemplate template)
template - the template to usepublic RemoteCacheConfigurationBuilder transactionMode(TransactionMode mode)
TransactionMode in which a RemoteCache will be enlisted.mode - the transaction modepublic RemoteCacheConfigurationBuilder transactionManager(TransactionManager manager)
TransactionManager to use for the cachemanager - an instance of a TransactionManagerpublic void validate()
Buildervalidate in interface Builder<RemoteCacheConfiguration>public RemoteCacheConfiguration create()
Buildercreate in interface Builder<RemoteCacheConfiguration>public Builder<?> read(RemoteCacheConfiguration template)
Builderread in interface Builder<RemoteCacheConfiguration>template - the configuration from which to "clone" this config if needed.public ConfigurationBuilder withProperties(Properties properties)
Copyright © 2022 JBoss by Red Hat. All rights reserved.