Enum PreStepResult
- java.lang.Object
-
- java.lang.Enum<PreStepResult>
-
- com.unboundid.directory.sdk.sync.types.PreStepResult
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PreStepResult>
public enum PreStepResult extends java.lang.Enum<PreStepResult>
This result is returned by plugins that are invoked before a step of the synchronization processing. It directs the core synchronization processing code how to continue processing the operation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORT_OPERATION
This result indicates that the current operation should be aborted without any additional processing.CONTINUE
This result indicates that processing should continue with the current step.RETRY_OPERATION_LIMITED
This result indicates that there was some error processing the current operation in the plugin and that it should be retried a limited number of times.RETRY_OPERATION_UNLIMITED
This result indicates that there was some error processing the current operation in the plugin and that it should be retried an limited number of times.SKIP_CURRENT_STEP
This result indicates that processing should skip the current step and then continue.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PreStepResult
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PreStepResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTINUE
public static final PreStepResult CONTINUE
This result indicates that processing should continue with the current step.
-
SKIP_CURRENT_STEP
public static final PreStepResult SKIP_CURRENT_STEP
This result indicates that processing should skip the current step and then continue. Plugins that return this result take on full responsibility for providing the functionality of the skipped step.
-
ABORT_OPERATION
public static final PreStepResult ABORT_OPERATION
This result indicates that the current operation should be aborted without any additional processing.
-
RETRY_OPERATION_LIMITED
public static final PreStepResult RETRY_OPERATION_LIMITED
This result indicates that there was some error processing the current operation in the plugin and that it should be retried a limited number of times.
-
RETRY_OPERATION_UNLIMITED
public static final PreStepResult RETRY_OPERATION_UNLIMITED
This result indicates that there was some error processing the current operation in the plugin and that it should be retried an limited number of times. Be very careful returning this value as it can stall all in-flight operations until the operation completes. This should only be used in situations where a remote service (e.g. the LDAP server) is unavailable.
-
-
Method Detail
-
values
public static PreStepResult[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PreStepResult c : PreStepResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PreStepResult valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-