Class TransactionSettingsReqeustControlProperties

java.lang.Object
com.unboundid.ldap.sdk.unboundidds.controls.TransactionSettingsReqeustControlProperties
All Implemented Interfaces:
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 Details

  • Method Details

    • getTransactionName

      Retrieves the name to assign to the associated transaction, if specified.
      Returns:
      The name to assign to the associated transaction, or null if none has been specified.
    • setTransactionName

      public void setTransactionName(@Nullable String transactionName)
      Specifies the name to assign to the associated transaction.
      Parameters:
      transactionName - The name to assign to the associated transaction, or null if 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 null if 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 be null if 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 null if none has been specified and the server should determine the backend exclusive lock behavior.
    • setBackendExclusiveLockBehavior

      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 be null if 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 null if none has been specified and the server should determine the backend exclusive lock behavior.
    • setSingleWriterLockBehavior

      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 be null if 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 null if 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 be null if 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 null if none has been specified and the server should determine the backend lock timeout.
    • setBackendLockTimeoutMillis

      public void setBackendLockTimeoutMillis(@Nullable 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.
      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 be null if 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 null if none has been specified and the server should determine the number of retry attempts.
    • setRetryAttempts

      public void setRetryAttempts(@Nullable Integer retryAttempts)
      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 be null if 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 null if none has been specified and the server should determine the minimum transaction lock timeout.
    • setMinTxnLockTimeoutMillis

      public void setMinTxnLockTimeoutMillis(@Nullable Long minTxnLockTimeoutMillis)
      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 be null if 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 null if none has been specified and the server should determine the maximum transaction lock timeout.
    • setMaxTxnLockTimeoutMillis

      public void setMaxTxnLockTimeoutMillis(@Nullable Long maxTxnLockTimeoutMillis)
      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 be null if the server should determine the maximum transaction lock timeout.
    • replicateControl

      public boolean replicateControl()
      Indicates whether the settings in this control should be considered when the operation is replicated to other servers in the topology.
      Returns:
      true if the control settings should be replicated, or false if not.
    • setReplicateControl

      public 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.
      Parameters:
      replicateControl - Indicates whether the settings in this control should be considered when the operation is replicated to other servers in the topology.
    • getReturnResponseControl

      public boolean getReturnResponseControl()
      Indicates whether to return a response control with transaction-related information collected over the course of processing the associated operation.
      Returns:
      true if the server should return a response control with transaction-related information, or false if not.
    • setReturnResponseControl

      public void setReturnResponseControl(boolean returnResponseControl)
      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.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the transaction settings request control properties.
    • toString

      public void toString(@NotNull StringBuilder buffer)
      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 be null.