public class TransactionConfigurationBuilder extends Object implements Builder<TransactionConfiguration>, ConfigurationBuilderInfo
Modifier and Type | Field and Description |
---|---|
protected ConfigurationBuilder |
builder |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBuilderInfo, getNewBuilderInfo
jmxStatistics
protected final ConfigurationBuilder builder
public AttributeSet attributes()
attributes
in interface BaseConfigurationInfo
AttributeSet
declared by the configuration.public ElementDefinition getElementDefinition()
getElementDefinition
in interface BaseConfigurationInfo
ElementDefinition
of the configuration.public Collection<ConfigurationBuilderInfo> getChildrenInfo()
getChildrenInfo
in interface ConfigurationBuilderInfo
ConfigurationBuilderInfo
for the sub-elements of the builder.public TransactionConfigurationBuilder autoCommit(boolean b)
transactionMode(org.infinispan.transaction.TransactionMode)
== TransactionMode.TRANSACTIONAL)
and transactionAutoCommit is enabled then for single operation transactions
the user doesn't need to manually start a transaction, but a transactions
is injected by the system. Defaults to true.public TransactionConfigurationBuilder cacheStopTimeout(long l)
public TransactionConfigurationBuilder cacheStopTimeout(long l, TimeUnit unit)
public TransactionConfigurationBuilder lockingMode(LockingMode lockingMode)
public TransactionConfigurationBuilder transactionManagerLookup(TransactionManagerLookup tml)
public TransactionManagerLookup transactionManagerLookup()
public TransactionConfigurationBuilder transactionSynchronizationRegistryLookup(TransactionSynchronizationRegistryLookup lookup)
public TransactionConfigurationBuilder transactionMode(TransactionMode transactionMode)
public TransactionMode transactionMode()
public TransactionConfigurationBuilder useSynchronization(boolean b)
b
- if true, Synchronization
s are used rather than XAResource
s when communicating with a TransactionManager
.public RecoveryConfigurationBuilder recovery()
RecoveryConfigurationBuilder.disable()
)}public TransactionConfigurationBuilder use1PcForAutoCommitTransactions(boolean b)
public boolean use1PcForAutoCommitTransactions()
public TransactionConfigurationBuilder reaperWakeUpInterval(long interval)
public TransactionConfigurationBuilder completedTxTimeout(long timeout)
public TransactionConfigurationBuilder notifications(boolean enabled)
TransactionRegistered
and
TransactionCompleted
) triggered?public void validate()
Builder
validate
in interface Builder<TransactionConfiguration>
public void validate(GlobalConfiguration globalConfig)
validate
in interface ConfigurationChildBuilder
public TransactionConfiguration create()
Builder
create
in interface Builder<TransactionConfiguration>
public TransactionConfigurationBuilder read(TransactionConfiguration template)
Builder
read
in interface Builder<TransactionConfiguration>
template
- the configuration from which to "clone" this config if needed.public ConfigurationChildBuilder template(boolean template)
template
in interface ConfigurationChildBuilder
public ConfigurationChildBuilder simpleCache(boolean simpleCache)
simpleCache
in interface ConfigurationChildBuilder
public boolean simpleCache()
simpleCache
in interface ConfigurationChildBuilder
public ClusteringConfigurationBuilder clustering()
clustering
in interface ConfigurationChildBuilder
@Deprecated public CustomInterceptorsConfigurationBuilder customInterceptors()
customInterceptors
in interface ConfigurationChildBuilder
public EncodingConfigurationBuilder encoding()
encoding
in interface ConfigurationChildBuilder
public ExpirationConfigurationBuilder expiration()
expiration
in interface ConfigurationChildBuilder
public IndexingConfigurationBuilder indexing()
indexing
in interface ConfigurationChildBuilder
public InvocationBatchingConfigurationBuilder invocationBatching()
invocationBatching
in interface ConfigurationChildBuilder
public StatisticsConfigurationBuilder statistics()
statistics
in interface ConfigurationChildBuilder
public PersistenceConfigurationBuilder persistence()
persistence
in interface ConfigurationChildBuilder
public LockingConfigurationBuilder locking()
locking
in interface ConfigurationChildBuilder
public SecurityConfigurationBuilder security()
security
in interface ConfigurationChildBuilder
public TransactionConfigurationBuilder transaction()
transaction
in interface ConfigurationChildBuilder
public UnsafeConfigurationBuilder unsafe()
unsafe
in interface ConfigurationChildBuilder
public SitesConfigurationBuilder sites()
sites
in interface ConfigurationChildBuilder
public MemoryConfigurationBuilder memory()
memory
in interface ConfigurationChildBuilder
protected ConfigurationBuilder getBuilder()
public Configuration build()
build
in interface ConfigurationChildBuilder
Copyright © 2021 JBoss by Red Hat. All rights reserved.