Interface EntryFilter
-
- All Known Implementing Classes:
EntryFilterWithClassLoader
public interface EntryFilter
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classEntryFilter.FilterResult
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()close the entry filter.EntryFilter.FilterResultfilterEntry(org.apache.bookkeeper.mledger.Entry entry, FilterContext context)1.
-
-
-
Method Detail
-
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.
-
-