Class EntryFilterWithClassLoader
java.lang.Object
org.apache.pulsar.broker.service.plugin.EntryFilterWithClassLoader
- All Implemented Interfaces:
EntryFilter
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.pulsar.broker.service.plugin.EntryFilter
EntryFilter.FilterResult -
Constructor Summary
ConstructorsConstructorDescriptionEntryFilterWithClassLoader(EntryFilter entryFilter, org.apache.pulsar.common.nar.NarClassLoader classLoader) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()close the entry filter.filterEntry(org.apache.bookkeeper.mledger.Entry entry, FilterContext context) 1.
-
Constructor Details
-
EntryFilterWithClassLoader
public EntryFilterWithClassLoader(EntryFilter entryFilter, org.apache.pulsar.common.nar.NarClassLoader classLoader)
-
-
Method Details
-
filterEntry
public EntryFilter.FilterResult filterEntry(org.apache.bookkeeper.mledger.Entry entry, FilterContext context) Description copied from interface:EntryFilter1. 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.- Specified by:
filterEntryin interfaceEntryFilter- Returns:
-
close
public void close()Description copied from interface:EntryFilterclose the entry filter.- Specified by:
closein interfaceEntryFilter
-