Class TransactionSettingsReqeustControlProperties
java.lang.Object
com.unboundid.ldap.sdk.unboundidds.controls.TransactionSettingsReqeustControlProperties
- All Implemented Interfaces:
Serializable
@Mutable
@ThreadSafety(level=NOT_THREADSAFE)
public final class TransactionSettingsReqeustControlProperties
extends Object
implements Serializable
This class defines a number of properties for use in conjunction with the
TransactionSettingsRequestControl.
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds package structure, are only
supported for use against Ping Identity, UnboundID, and
Nokia/Alcatel-Lucent 8661 server products. These classes provide support
for proprietary functionality or for external specifications that are not
considered stable or mature enough to be guaranteed to work in an
interoperable way with other types of LDAP servers.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new set of properties with all default values. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the backend exclusive lock behavior that should be used for the associated transaction, if specified.Retrieves the maximum length of time (in milliseconds) that the server may block while attempting to acquire the backend exclusive, single-writer, or scoped lock, if applicable.Retrieves the commit durability that should be used for the associated transaction, if specified.Retrieves the maximum transaction lock timeout (in milliseconds) that should be used for the associated transaction, if specified.Retrieves the minimum transaction lock timeout (in milliseconds) that should be used for the associated transaction, if specified.Retrieves the maximum number of times that the transaction may be retried if the initial attempt fails due to a lock conflict, if specified.booleanIndicates whether to return a response control with transaction-related information collected over the course of processing the associated operation.Retrieves details about the conditions under which to attempt to acquire a scoped lock, if any.Retrieves the single-writer lock behavior that should be used for the associated transaction, if specified.Retrieves the name to assign to the associated transaction, if specified.booleanIndicates whether the settings in this control should be considered when the operation is replicated to other servers in the topology.voidsetBackendExclusiveLockBehavior(TransactionSettingsBackendLockBehavior backendExclusiveLockBehavior) Specifies the backend exclusive lock behavior that should be used for the associated transaction.voidsetBackendLockTimeoutMillis(Long backendLockTimeoutMillis) Specifies the maximum length of time (in milliseconds) that the server may block while attempting to acquire the backend exclusive, single-writer, or scoped lock.voidsetCommitDurability(TransactionSettingsCommitDurability commitDurability) Specifies the commit durability that should be used for the associated transaction.voidsetMaxTxnLockTimeoutMillis(Long maxTxnLockTimeoutMillis) Specifies the maximum transaction lock timeout (in milliseconds) that should be used for the associated transaction.voidsetMinTxnLockTimeoutMillis(Long minTxnLockTimeoutMillis) Specifies the minimum transaction lock timeout (in milliseconds) that should be used for the associated transaction.voidsetReplicateControl(boolean replicateControl) Specifies whether the settings in this control should be considered when the operation is replicated to other servers in the topology.voidsetRetryAttempts(Integer retryAttempts) Specifies the maximum number of times that the transaction may be retried if the initial attempt fails due to a lock conflict.voidsetReturnResponseControl(boolean returnResponseControl) Indicates whether to return a response control with transaction-related information collected over the course of processing the associated operation.voidsetScopedLockDetails(TransactionSettingsScopedLockDetails scopedLockDetails) Specifies details about the conditions under which to attempt to acquire a scoped lock.voidsetSingleWriterLockBehavior(TransactionSettingsBackendLockBehavior singleWriterLockBehavior) Specifies the single-writer lock behavior that should be used for the associated transaction.voidsetTransactionName(String transactionName) Specifies the name to assign to the associated transaction.toString()Retrieves a string representation of the transaction settings request control properties.voidtoString(StringBuilder buffer) Appends a string representation of the transaction settings request control properties to the provided buffer.
-
Constructor Details
-
TransactionSettingsReqeustControlProperties
Creates a new set of properties with all default values.
-
-
Method Details
-
getTransactionName
Retrieves the name to assign to the associated transaction, if specified.- Returns:
- The name to assign to the associated transaction, or
nullif none has been specified.
-
setTransactionName
Specifies the name to assign to the associated transaction.- Parameters:
transactionName- The name to assign to the associated transaction, ornullif no transaction name should be used.
-
getCommitDurability
Retrieves the commit durability that should be used for the associated transaction, if specified.- Returns:
- The commit durability that should be used for the associated
transaction, or
nullif none has been specified and the server should determine the commit durability.
-
setCommitDurability
Specifies the commit durability that should be used for the associated transaction.- Parameters:
commitDurability- The commit durability that should be used for the associated transaction. It may benullif the server should determine the commit durability.
-
getBackendExclusiveLockBehavior
Retrieves the backend exclusive lock behavior that should be used for the associated transaction, if specified.- Returns:
- The backend exclusive lock behavior that should be used for the
associated transaction, or
nullif none has been specified and the server should determine the backend exclusive lock behavior.
-
setBackendExclusiveLockBehavior
public void setBackendExclusiveLockBehavior(@Nullable TransactionSettingsBackendLockBehavior backendExclusiveLockBehavior) Specifies the backend exclusive lock behavior that should be used for the associated transaction.- Parameters:
backendExclusiveLockBehavior- The backend exclusive lock behavior that should be used for the associated transaction. It may benullif the server should determine the backend exclusive lock behavior.
-
getSingleWriterLockBehavior
Retrieves the single-writer lock behavior that should be used for the associated transaction, if specified.- Returns:
- The single-writer lock behavior that should be used for the
associated transaction, or
nullif none has been specified and the server should determine the backend exclusive lock behavior.
-
setSingleWriterLockBehavior
public void setSingleWriterLockBehavior(@Nullable TransactionSettingsBackendLockBehavior singleWriterLockBehavior) Specifies the single-writer lock behavior that should be used for the associated transaction.- Parameters:
singleWriterLockBehavior- The single-writer lock behavior that should be used for the associated transaction. It may benullif the server should determine the single-writer lock behavior.
-
getScopedLockDetails
Retrieves details about the conditions under which to attempt to acquire a scoped lock, if any.- Returns:
- Details about the conditions under which to attempt to acquire a
scoped lock, or
nullif no attempt should be made to acquire a scoped lock.
-
setScopedLockDetails
Specifies details about the conditions under which to attempt to acquire a scoped lock.- Parameters:
scopedLockDetails- Details about the conditions under which to attempt to acquire a scoped lock. It may benullif no attempt should be made to acquire a scoped lock.
-
getBackendLockTimeoutMillis
Retrieves the maximum length of time (in milliseconds) that the server may block while attempting to acquire the backend exclusive, single-writer, or scoped lock, if applicable.- Returns:
- The backend lock timeout (in milliseconds) that should be used for
the associated transaction, or
nullif none has been specified and the server should determine the backend lock timeout.
-
setBackendLockTimeoutMillis
Specifies the maximum length of time (in milliseconds) that the server may block while attempting to acquire the backend exclusive, single-writer, or scoped lock.- Parameters:
backendLockTimeoutMillis- The maximum length of time (in milliseconds) that the server may block while attempting to acquire the backend exclusive, single-writer, or scoped lock. It may benullif the server should automatically determine the backend lock timeout.
-
getRetryAttempts
Retrieves the maximum number of times that the transaction may be retried if the initial attempt fails due to a lock conflict, if specified.- Returns:
- The maximum number of times that the transaction may be retried if
the initial attempt fails due to a lock conflict, or
nullif none has been specified and the server should determine the number of retry attempts.
-
setRetryAttempts
Specifies the maximum number of times that the transaction may be retried if the initial attempt fails due to a lock conflict.- Parameters:
retryAttempts- The maximum number of times that the transaction may be retried if the initial attempt fails due to a lock conflict. It may benullif the server should determine the number of retry attempts.
-
getMinTxnLockTimeoutMillis
Retrieves the minimum transaction lock timeout (in milliseconds) that should be used for the associated transaction, if specified. This is the timeout value that will be used for the first attempt. Any subsequent attempts will have a lock timeout that is between the minimum and maximum timeout value.- Returns:
- The minimum lock timeout (in milliseconds) that should
be used for the associated transaction, or
nullif none has been specified and the server should determine the minimum transaction lock timeout.
-
setMinTxnLockTimeoutMillis
Specifies the minimum transaction lock timeout (in milliseconds) that should be used for the associated transaction. This is the timeout value that will be used for the first attempt. Any subsequent attempts will have a lock timeout that is between the minimum and maximum timeout value.- Parameters:
minTxnLockTimeoutMillis- The minimum lock timeout (in milliseconds) that should be used for the associated transaction. It may benullif the server should determine the minimum transaction lock timeout.
-
getMaxTxnLockTimeoutMillis
Retrieves the maximum transaction lock timeout (in milliseconds) that should be used for the associated transaction, if specified. The timeout to be used for any retries will be between the minimum and maximum lock timeout values.- Returns:
- The maximum lock timeout (in milliseconds) that should
be used for the associated transaction, or
nullif none has been specified and the server should determine the maximum transaction lock timeout.
-
setMaxTxnLockTimeoutMillis
Specifies the maximum transaction lock timeout (in milliseconds) that should be used for the associated transaction. The timeout to be used for any retries will be between the minimum and maximum lock timeout values.- Parameters:
maxTxnLockTimeoutMillis- The maximum lock timeout (in milliseconds) that should be used for the associated transaction. It may benullif the server should determine the maximum transaction lock timeout.
-
replicateControl
Indicates whether the settings in this control should be considered when the operation is replicated to other servers in the topology.- Returns:
trueif the control settings should be replicated, orfalseif not.
-
setReplicateControl
Specifies whether the settings in this control should be considered when the operation is replicated to other servers in the topology.- Parameters:
replicateControl- Indicates whether the settings in this control should be considered when the operation is replicated to other servers in the topology.
-
getReturnResponseControl
Indicates whether to return a response control with transaction-related information collected over the course of processing the associated operation.- Returns:
trueif the server should return a response control with transaction-related information, orfalseif not.
-
setReturnResponseControl
Indicates whether to return a response control with transaction-related information collected over the course of processing the associated operation.- Parameters:
returnResponseControl- Specifies whether the server should return a response control with transaction-related information.
-
toString
Retrieves a string representation of the transaction settings request control properties. -
toString
Appends a string representation of the transaction settings request control properties to the provided buffer.- Parameters:
buffer- The buffer to which the string representation should be appended. It must not benull.
-