@Mutable @ThreadSafety(level=NOT_THREADSAFE) public final class TransactionSettingsReqeustControlProperties extends java.lang.Object implements java.io.Serializable
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.
Constructor and Description |
---|
TransactionSettingsReqeustControlProperties()
Creates a new set of properties with all default values.
|
Modifier and Type | Method and Description |
---|---|
TransactionSettingsBackendLockBehavior |
getBackendExclusiveLockBehavior()
Retrieves the backend exclusive lock behavior that should be used for the
associated transaction, if specified.
|
java.lang.Long |
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.
|
TransactionSettingsCommitDurability |
getCommitDurability()
Retrieves the commit durability that should be used for the associated
transaction, if specified.
|
java.lang.Long |
getMaxTxnLockTimeoutMillis()
Retrieves the maximum transaction lock timeout (in milliseconds) that
should be used for the associated transaction, if specified.
|
java.lang.Long |
getMinTxnLockTimeoutMillis()
Retrieves the minimum transaction lock timeout (in milliseconds) that
should be used for the associated transaction, if specified.
|
java.lang.Integer |
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.
|
boolean |
getReturnResponseControl()
Indicates whether to return a response control with transaction-related
information collected over the course of processing the associated
operation.
|
TransactionSettingsScopedLockDetails |
getScopedLockDetails()
Retrieves details about the conditions under which to attempt to acquire a
scoped lock, if any.
|
TransactionSettingsBackendLockBehavior |
getSingleWriterLockBehavior()
Retrieves the single-writer lock behavior that should be used for the
associated transaction, if specified.
|
java.lang.String |
getTransactionName()
Retrieves the name to assign to the associated transaction, if specified.
|
boolean |
replicateControl()
Indicates whether the settings in this control should be considered when
the operation is replicated to other servers in the topology.
|
void |
setBackendExclusiveLockBehavior(TransactionSettingsBackendLockBehavior backendExclusiveLockBehavior)
Specifies the backend exclusive lock behavior that should be used for the
associated transaction.
|
void |
setBackendLockTimeoutMillis(java.lang.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.
|
void |
setCommitDurability(TransactionSettingsCommitDurability commitDurability)
Specifies the commit durability that should be used for the associated
transaction.
|
void |
setMaxTxnLockTimeoutMillis(java.lang.Long maxTxnLockTimeoutMillis)
Specifies the maximum transaction lock timeout (in milliseconds) that
should be used for the associated transaction.
|
void |
setMinTxnLockTimeoutMillis(java.lang.Long minTxnLockTimeoutMillis)
Specifies the minimum transaction lock timeout (in milliseconds) that
should be used for the associated transaction.
|
void |
setReplicateControl(boolean replicateControl)
Specifies whether the settings in this control should be considered when
the operation is replicated to other servers in the topology.
|
void |
setRetryAttempts(java.lang.Integer retryAttempts)
Specifies the maximum number of times that the transaction may be retried
if the initial attempt fails due to a lock conflict.
|
void |
setReturnResponseControl(boolean returnResponseControl)
Indicates whether to return a response control with transaction-related
information collected over the course of processing the associated
operation.
|
void |
setScopedLockDetails(TransactionSettingsScopedLockDetails scopedLockDetails)
Specifies details about the conditions under which to attempt to acquire a
scoped lock.
|
void |
setSingleWriterLockBehavior(TransactionSettingsBackendLockBehavior singleWriterLockBehavior)
Specifies the single-writer lock behavior that should be used for the
associated transaction.
|
void |
setTransactionName(java.lang.String transactionName)
Specifies the name to assign to the associated transaction.
|
java.lang.String |
toString()
Retrieves a string representation of the transaction settings request
control properties.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of the transaction settings request control
properties to the provided buffer.
|
public TransactionSettingsReqeustControlProperties()
@Nullable public java.lang.String getTransactionName()
null
if none has been specified.public void setTransactionName(@Nullable java.lang.String transactionName)
transactionName
- The name to assign to the associated transaction,
or null
if no transaction name should be
used.@Nullable public TransactionSettingsCommitDurability getCommitDurability()
null
if none has been specified and the
server should determine the commit durability.public void setCommitDurability(@Nullable TransactionSettingsCommitDurability commitDurability)
commitDurability
- The commit durability that should be used for
the associated transaction. It may be
null
if the server should determine the
commit durability.@Nullable public TransactionSettingsBackendLockBehavior getBackendExclusiveLockBehavior()
null
if none has been specified
and the server should determine the backend exclusive lock
behavior.public void setBackendExclusiveLockBehavior(@Nullable TransactionSettingsBackendLockBehavior backendExclusiveLockBehavior)
backendExclusiveLockBehavior
- The backend exclusive lock behavior
that should be used for the
associated transaction. It may be
null
if the server should
determine the backend exclusive
lock behavior.@Nullable public TransactionSettingsBackendLockBehavior getSingleWriterLockBehavior()
null
if none has been specified
and the server should determine the backend exclusive lock
behavior.public void setSingleWriterLockBehavior(@Nullable TransactionSettingsBackendLockBehavior singleWriterLockBehavior)
singleWriterLockBehavior
- The single-writer lock behavior that
should be used for the associated
transaction. It may be null
if
the server should determine the
single-writer lock behavior.@Nullable public TransactionSettingsScopedLockDetails getScopedLockDetails()
null
if no attempt should be made to
acquire a scoped lock.public void setScopedLockDetails(@Nullable TransactionSettingsScopedLockDetails scopedLockDetails)
scopedLockDetails
- Details about the conditions under which to
attempt to acquire a scoped lock. It may be
null
if no attempt should be made to
acquire a scoped lock.@Nullable public java.lang.Long getBackendLockTimeoutMillis()
null
if none has been
specified and the server should determine the backend lock
timeout.public void setBackendLockTimeoutMillis(@Nullable java.lang.Long backendLockTimeoutMillis)
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 be null
if the server
should automatically determine the
backend lock timeout.@Nullable public java.lang.Integer getRetryAttempts()
null
if none has been specified and the server should determine the
number of retry attempts.public void setRetryAttempts(@Nullable java.lang.Integer retryAttempts)
retryAttempts
- The maximum number of times that the transaction may
be retried if the initial attempt fails due to a
lock conflict. It may be null
if the server
should determine the number of retry attempts.@Nullable public java.lang.Long getMinTxnLockTimeoutMillis()
null
if none
has been specified and the server should determine the minimum
transaction lock timeout.public void setMinTxnLockTimeoutMillis(@Nullable java.lang.Long minTxnLockTimeoutMillis)
minTxnLockTimeoutMillis
- The minimum lock timeout (in milliseconds)
that should be used for the associated
transaction. It may be null
if
the server should determine the minimum
transaction lock timeout.@Nullable public java.lang.Long getMaxTxnLockTimeoutMillis()
null
if none
has been specified and the server should determine the maximum
transaction lock timeout.public void setMaxTxnLockTimeoutMillis(@Nullable java.lang.Long maxTxnLockTimeoutMillis)
maxTxnLockTimeoutMillis
- The maximum lock timeout (in milliseconds)
that should be used for the associated
transaction. It may be null
if the
server should determine the maximum
transaction lock timeout.public boolean replicateControl()
true
if the control settings should be replicated, or
false
if not.public void setReplicateControl(boolean replicateControl)
replicateControl
- Indicates whether the settings in this control
should be considered when the operation is
replicated to other servers in the topology.public boolean getReturnResponseControl()
true
if the server should return a response control with
transaction-related information, or false
if not.public void setReturnResponseControl(boolean returnResponseControl)
returnResponseControl
- Specifies whether the server should return a
response control with transaction-related
information.@NotNull public java.lang.String toString()
toString
in class java.lang.Object