Class TransactionConfigurationBuilder
java.lang.Object
org.infinispan.client.hotrod.configuration.AbstractConfigurationChildBuilder
org.infinispan.client.hotrod.configuration.TransactionConfigurationBuilder
- All Implemented Interfaces:
ConfigurationChildBuilder
,Builder<TransactionConfiguration>
@Deprecated(forRemoval=true)
public class TransactionConfigurationBuilder
extends AbstractConfigurationChildBuilder
implements Builder<TransactionConfiguration>
Deprecated, for removal: This API element is subject to removal in a future version.
since 12.0. To be removed in Infinispan 14.
Configures a transactional
RemoteCache
.- Since:
- 9.3
- Author:
- Pedro Ruivo
-
Field Summary
Modifier and TypeFieldDescriptionstatic final long
Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.create()
Deprecated, for removal: This API element is subject to removal in a future version.Create the configuration beanstatic TransactionManagerLookup
Deprecated, for removal: This API element is subject to removal in a future version.Builder<?>
read
(TransactionConfiguration template, Combine combine) Deprecated, for removal: This API element is subject to removal in a future version.Reads the configuration from an already created configuration bean into this builder.Deprecated, for removal: This API element is subject to removal in a future version.since 12.0.transactionManagerLookup
(TransactionManagerLookup transactionManagerLookup) Deprecated, for removal: This API element is subject to removal in a future version.since 12.0.transactionMode
(TransactionMode transactionMode) Deprecated, for removal: This API element is subject to removal in a future version.since 12.0.void
validate()
Deprecated, for removal: This API element is subject to removal in a future version.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, dnsResolverMaxTTL, dnsResolverMinTTL, dnsResolverNegativeTTL, 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, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Method Details
-
attributes
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
attributes
in interfaceBuilder<TransactionConfiguration>
-
defaultTransactionManagerLookup
Deprecated, for removal: This API element is subject to removal in a future version. -
transactionManagerLookup
@Deprecated(forRemoval=true) public TransactionConfigurationBuilder transactionManagerLookup(TransactionManagerLookup transactionManagerLookup) Deprecated, for removal: This API element is subject to removal in a future version.since 12.0. To be removed in Infinispan 14. UseRemoteCacheConfigurationBuilder.transactionManagerLookup(TransactionManagerLookup)
TheTransactionManagerLookup
to lookup for theTransactionManager
to interact with. -
transactionMode
@Deprecated(forRemoval=true) public TransactionConfigurationBuilder transactionMode(TransactionMode transactionMode) Deprecated, for removal: This API element is subject to removal in a future version.since 12.0. To be removed in Infinispan 14. UseRemoteCacheConfigurationBuilder.transactionMode(TransactionMode)
TheTransactionMode
in which aRemoteCache
will be enlisted. -
timeout
@Deprecated(forRemoval=true) public TransactionConfigurationBuilder timeout(long timeout, TimeUnit timeUnit) Deprecated, for removal: This API element is subject to removal in a future version.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
) orXAResource
without 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, for removal: This API element is subject to removal in a future version.Description copied from interface:Builder
Validate the data in this builder before building the configuration bean- Specified by:
validate
in interfaceBuilder<TransactionConfiguration>
-
create
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<TransactionConfiguration>
- Returns:
-
read
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
read
in interfaceBuilder<TransactionConfiguration>
- Parameters:
template
- the configuration from which to "clone" this config if needed.combine
- the way attributes and children of this instance and the template should be combined.
-