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 |
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 NearCacheMode
public RemoteCacheConfigurationBuilder nearCacheMaxEntries(int maxEntries)
nearCacheMode(NearCacheMode)
is not NearCacheMode.DISABLED
.maxEntries
- maximum entries in the near cache.public 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()
Builder
validate
in interface Builder<RemoteCacheConfiguration>
public RemoteCacheConfiguration create()
Builder
create
in interface Builder<RemoteCacheConfiguration>
public Builder<?> read(RemoteCacheConfiguration template)
Builder
read
in interface Builder<RemoteCacheConfiguration>
template
- the configuration from which to "clone" this config if needed.public ConfigurationBuilder withProperties(Properties properties)
Copyright © 2021 JBoss by Red Hat. All rights reserved.