Class TransactionConfigurationBuilder
java.lang.Object
org.infinispan.client.hotrod.configuration.AbstractConfigurationChildBuilder
org.infinispan.client.hotrod.configuration.TransactionConfigurationBuilder
- All Implemented Interfaces:
ConfigurationChildBuilder,Builder<TransactionConfiguration>
@Deprecated
public class TransactionConfigurationBuilder
extends AbstractConfigurationChildBuilder
implements Builder<TransactionConfiguration>
Deprecated.
since 12.0. To be removed in Infinispan 14.
Configures a transactional
RemoteCache.- Since:
- 9.3
- Author:
- Pedro Ruivo
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreate()Deprecated.Create the configuration beanstatic org.infinispan.commons.tx.lookup.TransactionManagerLookupDeprecated.Builder<?>read(TransactionConfiguration template) Deprecated.Reads the configuration from an already created configuration bean into this builder.Deprecated.since 12.0.transactionManagerLookup(org.infinispan.commons.tx.lookup.TransactionManagerLookup transactionManagerLookup) Deprecated.since 12.0.transactionMode(TransactionMode transactionMode) Deprecated.since 12.0.voidvalidate()Deprecated.Validate the data in this builder before building the configuration beanMethods inherited from class org.infinispan.client.hotrod.configuration.AbstractConfigurationChildBuilder
addCluster, addContextInitializer, addContextInitializer, addContextInitializers, addJavaSerialAllowList, addJavaSerialWhiteList, addServer, addServers, asyncExecutorFactory, balancingStrategy, balancingStrategy, balancingStrategy, batchSize, build, classLoader, clientIntelligence, connectionPool, connectionTimeout, consistentHashImpl, consistentHashImpl, forceReturnValues, keySizeEstimate, marshaller, marshaller, marshaller, maxRetries, protocolVersion, remoteCache, security, socketTimeout, statistics, tcpKeepAlive, tcpNoDelay, transaction, transactionTimeout, transportFactory, uri, uri, valueSizeEstimate, version, withProperties
-
Field Details
-
DEFAULT_TIMEOUT
public static final long DEFAULT_TIMEOUTDeprecated.- See Also:
-
-
Method Details
-
defaultTransactionManagerLookup
public static org.infinispan.commons.tx.lookup.TransactionManagerLookup defaultTransactionManagerLookup()Deprecated. -
transactionManagerLookup
@Deprecated public TransactionConfigurationBuilder transactionManagerLookup(org.infinispan.commons.tx.lookup.TransactionManagerLookup transactionManagerLookup) Deprecated.since 12.0. To be removed in Infinispan 14. UseRemoteCacheConfigurationBuilder.transactionManagerLookup(TransactionManagerLookup)TheTransactionManagerLookupto lookup for theTransactionManagerto interact with. -
transactionMode
Deprecated.since 12.0. To be removed in Infinispan 14. UseRemoteCacheConfigurationBuilder.transactionMode(TransactionMode)TheTransactionModein which aRemoteCachewill be enlisted. -
timeout
Deprecated.since 12.0. To be removed in Infinispan 14. UseConfigurationBuilder.transactionTimeout(long, TimeUnit)Sets the transaction's timeout.This timeout is used by the server to rollback unrecoverable transaction when they are idle for this amount of time.
An unrecoverable transaction are transaction enlisted as
Synchronization(TransactionMode.NON_XA) orXAResourcewithout recovery enabled (TransactionMode.NON_DURABLE_XA).For
XAResource, this value is overwritten byXAResource.setTransactionTimeout(int).It defaults to 1 minute.
-
validate
public void validate()Deprecated.Description copied from interface:BuilderValidate the data in this builder before building the configuration bean- Specified by:
validatein interfaceBuilder<TransactionConfiguration>
-
create
Deprecated.Description copied from interface:BuilderCreate the configuration bean- Specified by:
createin interfaceBuilder<TransactionConfiguration>- Returns:
-
read
Deprecated.Description copied from interface:BuilderReads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
readin interfaceBuilder<TransactionConfiguration>- Parameters:
template- the configuration from which to "clone" this config if needed.
-