Interface EntryFilter

All Known Implementing Classes:
EntryFilterWithClassLoader

public interface EntryFilter
  • Method Details

    • filterEntry

      EntryFilter.FilterResult filterEntry(org.apache.bookkeeper.mledger.Entry entry, FilterContext context)
      1. Broker determines whether to filter out this entry based on the return value of this method. 2. Do not deserialize the entire entry in this method, which has a great impact on the broker's memory and CPU. 3. Return ACCEPT or null will be regarded as ACCEPT.
      Parameters:
      entry -
      context -
      Returns:
    • close

      void close()
      close the entry filter.