Enum TransactionSettingsBackendLockBehavior
java.lang.Object
java.lang.Enum<TransactionSettingsBackendLockBehavior>
com.unboundid.ldap.sdk.unboundidds.controls.TransactionSettingsBackendLockBehavior
- All Implemented Interfaces:
Serializable,Comparable<TransactionSettingsBackendLockBehavior>,java.lang.constant.Constable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public enum TransactionSettingsBackendLockBehavior
extends Enum<TransactionSettingsBackendLockBehavior>
This enum defines the options that may be specified to indicate whether and
when to acquire an exclusive lock in the target backend when processing a
transaction.
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that if the server is unable to successfully commit the associated transaction after one or more attempts without holding an exclusive lock in the target backend, then it should make one more attempt after acquiring the lock.Indicates that the server should acquire an exclusive lock in the target backend before performing any backend processing for the operation.Indicates that if the server is unable to successfully commit the associated transaction after the first attempt without holding an exclusive lock in the target backend, then it should make one or more additional attempts (as specified by the requested number of retries) after acquiring the lock.Indicates that the server should not make any attempt to acquire an exclusive lock in the target backend, whether during the initial attempt or a subsequent retry. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the transaction settings backend lock behavior with the specified name.intintValue()Retrieves the integer value for this transaction settings backend lock behavior value.valueOf(int intValue) Retrieves the backend lock behavior value with the specified integer value.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DO_NOT_ACQUIRE
Indicates that the server should not make any attempt to acquire an exclusive lock in the target backend, whether during the initial attempt or a subsequent retry. This will allow the highest level of concurrency for operations within the backend, but may increase the risk of lock conflicts between transactions in a server processing many operations concurrently. This risk may be mitigated by indicating that the transaction should be retried one or more times. -
ACQUIRE_AFTER_RETRIES
Indicates that if the server is unable to successfully commit the associated transaction after one or more attempts without holding an exclusive lock in the target backend, then it should make one more attempt after acquiring the lock. This will avoid the need to acquire the lock unless the maximum number of attempts have been unsuccessful without it. -
ACQUIRE_BEFORE_RETRIES
Indicates that if the server is unable to successfully commit the associated transaction after the first attempt without holding an exclusive lock in the target backend, then it should make one or more additional attempts (as specified by the requested number of retries) after acquiring the lock. This will avoid the need to acquire the lock for operations that can be completed on the first attempt without it. -
ACQUIRE_BEFORE_INITIAL_ATTEMPT
Indicates that the server should acquire an exclusive lock in the target backend before performing any backend processing for the operation. This will limit concurrency, as the backend will not be able to process any other operation while the associated operation is in progress, but this will also minimize the chance of a thread deadlock or lock timeout as a result of a conflict between database interactions from multiple simultaneous operations.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
intValue
Retrieves the integer value for this transaction settings backend lock behavior value.- Returns:
- The integer value for this transaction settings backend lock behavior value.
-
valueOf
Retrieves the backend lock behavior value with the specified integer value.- Parameters:
intValue- The integer value for the backend lock behavior to retrieve.- Returns:
- The backend lock behavior value with the specified integer value,
or
nullif there is no such backend lock behavior value.
-
forName
Retrieves the transaction settings backend lock behavior with the specified name.- Parameters:
name- The name of the transaction settings backend lock behavior to retrieve. It must not benull.- Returns:
- The requested transaction settings backend lock behavior, or
nullif no such behavior is defined.
-