![JAR search and dependency download from the Maven repository](/logo.png)
com.unboundid.ldap.sdk.unboundidds.extensions.MultiUpdateErrorBehavior Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unboundid-ldapsdk-commercial-edition Show documentation
Show all versions of unboundid-ldapsdk-commercial-edition Show documentation
The UnboundID LDAP SDK for Java is a fast, comprehensive, and easy-to-use
Java API for communicating with LDAP directory servers and performing
related tasks like reading and writing LDIF, encoding and decoding data
using base64 and ASN.1 BER, and performing secure communication. This
package contains the Commercial Edition of the LDAP SDK, which includes
all of the general-purpose functionality contained in the Standard
Edition, plus additional functionality specific to UnboundID server
products.
The newest version!
/*
* Copyright 2012-2017 UnboundID Corp.
* All Rights Reserved.
*/
/*
* Copyright (C) 2015-2017 UnboundID Corp.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License (GPLv2 only)
* or the terms of the GNU Lesser General Public License (LGPLv2.1 only)
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see .
*/
package com.unboundid.ldap.sdk.unboundidds.extensions;
/**
* This enum defines the set of possible error behavior values that may be used
* in the multi-update extended request.
*
*
* NOTE: This class is part of the Commercial Edition of the UnboundID
* LDAP SDK for Java. It is not available for use in applications that
* include only the Standard Edition of the LDAP SDK, and is not supported for
* use in conjunction with non-UnboundID products.
*
*
* @see MultiUpdateExtendedRequest
*/
public enum MultiUpdateErrorBehavior
{
/**
* The behavior which indicates that all operations must be processed
* atomically. The entire set of updates will succeed or fail as a single
* unit, and directory clients will not see any updates while the multi-update
* request is in progress. Note that the server may place constraints on
* the ability to use this error behavior such that it may not be usable in
* all circumstances (e.g., when passing through a Directory Proxy Server with
* entry balancing enabled or that would otherwise need to communicate with
* multiple servers, or if it is necessary to interact with entries in
* multiple Directory Server backends).
*/
ATOMIC(0),
/**
* The behavior which indicates that processing will end for the multi-update
* operation after the first failure is encountered while attempting to
* apply a change. Any changes processed before the first failure was
* encountered will still have been applied, and clients accessing the server
* in the course of processing the multi-update request may see changes after
* only some of them have been completed.
*/
ABORT_ON_ERROR(1),
/**
* The behavior which indicates that the server should attempt to process all
* elements of the multi-update request even if one or more failures are
* encountered. Clients accessing the server in the course of processing the
* multi-update request may see changes after only some of them have been
* completed.
*/
CONTINUE_ON_ERROR(2);
// The integer value associated with this error behavior.
private final int intValue;
/**
* Creates a new multi-update error behavior value with the provided integer
* representation.
*
* @param intValue The integer value associated with this error behavior.
*/
MultiUpdateErrorBehavior(final int intValue)
{
this.intValue = intValue;
}
/**
* Retrieves the integer value associated with this error behavior.
*
* @return The integer value associated with this error behavior.
*/
public int intValue()
{
return intValue;
}
/**
* Retrieves the multi-update error behavior value with the specified integer
* value.
*
* @param intValue The integer value for the error behavior to retrieve.
*
* @return The multi-update error behavior with the specified integer value,
* or {@code null} if there is no error behavior with the specified
* value.
*/
public static MultiUpdateErrorBehavior valueOf(final int intValue)
{
for (final MultiUpdateErrorBehavior v : values())
{
if (intValue == v.intValue)
{
return v;
}
}
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy