@Mutable @ThreadSafety(level=NOT_THREADSAFE) public final class TransactionSettingsScopedLockDetails extends java.lang.Object implements java.io.Serializable
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 |
---|
TransactionSettingsScopedLockDetails(java.lang.String scopeIdentifier,
TransactionSettingsBackendLockBehavior lockBehavior)
Creates a new scoped lock details object with the provided information.
|
Modifier and Type | Method and Description |
---|---|
static TransactionSettingsScopedLockDetails |
decode(ASN1Element element)
Decodes the provided ASN.1 element as a set of scoped lock settings.
|
ASN1Element |
encode()
Encodes the scoped lock details into an ASN.1 element for inclusion in a
transaction settings request control.
|
TransactionSettingsBackendLockBehavior |
getLockBehavior()
Retrieves the behavior that indicates when the lock should be acquired.
|
java.lang.String |
getScopeIdentifier()
Retrieves s string that identifies which scoped lock to acquire.
|
java.lang.String |
toString()
Retrieves a string representation of the scoped lock details.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of the scoped lock details to the provided
buffer.
|
public TransactionSettingsScopedLockDetails(@NotNull java.lang.String scopeIdentifier, @NotNull TransactionSettingsBackendLockBehavior lockBehavior)
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
.@NotNull public java.lang.String getScopeIdentifier()
@NotNull public TransactionSettingsBackendLockBehavior getLockBehavior()
@Nullable public ASN1Element encode()
null
if no scoped lock is needed (as indicated by a
lock behavior of DO_NOT_ACQUIRE
).@Nullable public static TransactionSettingsScopedLockDetails decode(@Nullable ASN1Element element) throws LDAPException
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.LDAPException
- If a problem occurs while attempting to decode the
provided ASN.1 element as a set of scoped lock
settings.@NotNull public java.lang.String toString()
toString
in class java.lang.Object