public enum AcceptRecordPolicy extends Enum<AcceptRecordPolicy>
| Enum Constant and Description |
|---|
ALL
Accepts any records
|
NO_FAILURES
Only accepts records that have not failed in any step
|
ONLY_FAILURES
Only accept records that have failed in any step
|
| Modifier and Type | Method and Description |
|---|---|
abstract <T> boolean |
accept(RecordWithErrors record) |
static AcceptRecordPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AcceptRecordPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AcceptRecordPolicy ALL
public static final AcceptRecordPolicy ONLY_FAILURES
public static final AcceptRecordPolicy NO_FAILURES
public static AcceptRecordPolicy[] values()
for (AcceptRecordPolicy c : AcceptRecordPolicy.values()) System.out.println(c);
public static AcceptRecordPolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract <T> boolean accept(RecordWithErrors record)
Copyright © 2006–2024 MuleSoft, Inc.. All rights reserved.