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().
  • Constructor Details

    • NoopEntryValidator

      public NoopEntryValidator()
  • Method Details

    • validateEntry

      public EntryValidator.ValidationResult validateEntry(ApplicationEntry lastEntry, ApplicationEntry entry)
      Description copied from interface: EntryValidator
      Validates 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:
      validateEntry in interface EntryValidator
      Parameters:
      lastEntry - the previous zeebe entry
      entry - the zeebe entry to be appended
      Returns:
      a ValidationResult containing the validation result and an error message, if it failed