Package io.atomix.raft.zeebe
Class EntryValidator.NoopEntryValidator
java.lang.Object
io.atomix.raft.zeebe.EntryValidator.NoopEntryValidator
- All Implemented Interfaces:
EntryValidator
- Enclosing interface:
EntryValidator
public static final class EntryValidator.NoopEntryValidator
extends Object
implements EntryValidator
A simple validator which always returns
EntryValidator.ValidationResult.ok().-
Nested Class Summary
Nested classes/interfaces inherited from interface io.atomix.raft.zeebe.EntryValidator
EntryValidator.NoopEntryValidator, EntryValidator.ValidationResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvalidateEntry(ApplicationEntry lastEntry, ApplicationEntry entry) Validates the current entry, which should be append to the log, and compares it with the last appended entry to ensure consistency.
-
Constructor Details
-
NoopEntryValidator
public NoopEntryValidator()
-
-
Method Details
-
validateEntry
public EntryValidator.ValidationResult validateEntry(ApplicationEntry lastEntry, ApplicationEntry entry) Description copied from interface:EntryValidatorValidates the current entry, which should be append to the log, and compares it with the last appended entry to ensure consistency. The ValidationResult reflects the outcome of the validation and holds an error message when the validation fails.- Specified by:
validateEntryin interfaceEntryValidator- Parameters:
lastEntry- the previous zeebe entryentry- the zeebe entry to be appended- Returns:
- a ValidationResult containing the validation result and an error message, if it failed
-