Class TransactionSettingsScopedLockDetails

java.lang.Object
com.unboundid.ldap.sdk.unboundidds.controls.TransactionSettingsScopedLockDetails
All Implemented Interfaces:
Serializable

This class provides a data structure that holds information that may be used if the server needs to acquire a scoped lock that may apply to a subset of related requests within a backend, without affecting other unrelated operations being processed in that backend.
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

    • TransactionSettingsScopedLockDetails

      Creates a new scoped lock details object with the provided information.
      Parameters:
      scopeIdentifier - A string that identifies which scoped lock to acquire. It must not be null.
      lockBehavior - The behavior that indicates when the server should attempt to acquire the scoped lock. It must not be null, and should not be DO_NOT_ACQUIRE.
  • Method Details

    • getScopeIdentifier

      Retrieves s string that identifies which scoped lock to acquire.
      Returns:
      A string that identifies which scoped lock to acquire.
    • getLockBehavior

      Retrieves the behavior that indicates when the lock should be acquired.
      Returns:
      The behavior that indicates when the lock should be acquired.
    • encode

      Encodes the scoped lock details into an ASN.1 element for inclusion in a transaction settings request control.
      Returns:
      The ASN.1 element containing the encoded scoped lock details, or null if no scoped lock is needed (as indicated by a lock behavior of DO_NOT_ACQUIRE).
    • decode

      Decodes the provided ASN.1 element as a set of scoped lock settings.
      Parameters:
      element - The ASN.1 element to decode as a set of scoped lock settings. It may be null if the associated transaction settings request control did not include any scoped lock settings.
      Returns:
      The decoded scoped lock settings.
      Throws:
      LDAPException - If a problem occurs while attempting to decode the provided ASN.1 element as a set of scoped lock settings.
    • toString

      Retrieves a string representation of the scoped lock details.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the scoped lock details.
    • toString

      public void toString(@NotNull StringBuilder buffer)
      Appends a string representation of the scoped lock details to the provided buffer.
      Parameters:
      buffer - The buffer to which the string representation should be appended.