Class EntryFilterWithClassLoader
- java.lang.Object
-
- org.apache.pulsar.broker.service.plugin.EntryFilterWithClassLoader
-
- All Implemented Interfaces:
EntryFilter
public class EntryFilterWithClassLoader extends java.lang.Object implements EntryFilter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pulsar.broker.service.plugin.EntryFilter
EntryFilter.FilterResult
-
-
Constructor Summary
Constructors Constructor Description EntryFilterWithClassLoader(EntryFilter entryFilter, org.apache.pulsar.common.nar.NarClassLoader classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()close the entry filter.EntryFilter.FilterResultfilterEntry(org.apache.bookkeeper.mledger.Entry entry, FilterContext context)1.
-
-
-
Constructor Detail
-
EntryFilterWithClassLoader
public EntryFilterWithClassLoader(EntryFilter entryFilter, org.apache.pulsar.common.nar.NarClassLoader classLoader)
-
-
Method Detail
-
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
-
-