Class EntryFilterWithClassLoader

  • All Implemented Interfaces:
    EntryFilter

    public class EntryFilterWithClassLoader
    extends java.lang.Object
    implements EntryFilter
    • 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: EntryFilter
        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.
        Specified by:
        filterEntry in interface EntryFilter
        Returns:
      • close

        public void close()
        Description copied from interface: EntryFilter
        close the entry filter.
        Specified by:
        close in interface EntryFilter