Enum AssuredReplicationLocalLevel
java.lang.Object
java.lang.Enum<AssuredReplicationLocalLevel>
com.unboundid.ldap.sdk.unboundidds.controls.AssuredReplicationLocalLevel
- All Implemented Interfaces:
Serializable,Comparable<AssuredReplicationLocalLevel>,java.lang.constant.Constable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public enum AssuredReplicationLocalLevel
extends Enum<AssuredReplicationLocalLevel>
This enum defines an assurance level that may be used for servers in the
same location as the server receiving the change.
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.
-
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 no local assurance is desired for the associated operation.Indicates that the operation result should not be returned to the client until the change has been processed by all available directory servers in the same location as the original server.Indicates that the operation result should not be returned to the client until the change has been received by at least one other replication server in same location. -
Method Summary
Modifier and TypeMethodDescriptionstatic AssuredReplicationLocalLevelRetrieves the local assurance level with the specified name.static AssuredReplicationLocalLevelRetrieves the less strict of the two provided assured replication local level values.static AssuredReplicationLocalLevelRetrieves the more strict of the two provided assured replication local level values.getName()Retrieves the name for this local assurance level.intintValue()Retrieves integer value for this local assurance level.static AssuredReplicationLocalLevelvalueOf(int intValue) Retrieves the local assurance level with the specified integer value.static AssuredReplicationLocalLevelReturns the enum constant of this type with the specified name.static AssuredReplicationLocalLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
Indicates that no local assurance is desired for the associated operation. -
RECEIVED_ANY_SERVER
Indicates that the operation result should not be returned to the client until the change has been received by at least one other replication server in same location. Note that this level does not require the change to have already been processed by any other directory server, but merely requires that it exist in at least one other replication server for the sake of redundancy. If the client interacts with another local directory server immediately after receiving a result with this level of assurance, there is no guarantee that the associated change will be visible on that server. -
PROCESSED_ALL_SERVERS
Indicates that the operation result should not be returned to the client until the change has been processed by all available directory servers in the same location as the original server.
-
-
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 integer value for this local assurance level.- Returns:
- The integer value for this local assurance level.
-
getName
Retrieves the name for this local assurance level.- Returns:
- The name for this local assurance level.
-
valueOf
Retrieves the local assurance level with the specified integer value.- Parameters:
intValue- The integer value for the local assurance level to retrieve.- Returns:
- The requested local assurance level, or
nullif there is no local assurance level with the specified integer value.
-
forName
Retrieves the local assurance level with the specified name.- Parameters:
name- The name of the local assurance level to retrieve. It must not benull.- Returns:
- The requested local assurance level, or
nullif no such level is defined.
-
getLessStrict
@NotNull public static AssuredReplicationLocalLevel getLessStrict(@NotNull AssuredReplicationLocalLevel l1, @NotNull AssuredReplicationLocalLevel l2) Retrieves the less strict of the two provided assured replication local level values. If the two provided values are the same, then that value will be returned.- Parameters:
l1- The first value to compare.l2- The second value to compare.- Returns:
- The less strict of the two provided assured replication local level values.
-
getMoreStrict
@NotNull public static AssuredReplicationLocalLevel getMoreStrict(@NotNull AssuredReplicationLocalLevel l1, @NotNull AssuredReplicationLocalLevel l2) Retrieves the more strict of the two provided assured replication local level values. If the two provided values are the same, then that value will be returned.- Parameters:
l1- The first value to compare.l2- The second value to compare.- Returns:
- The more strict of the two provided assured replication local level values.
-