Class RecordFilterChainImpl

    • Constructor Detail

      • RecordFilterChainImpl

        public RecordFilterChainImpl()
    • Method Detail

      • beforeAppend

        public Record beforeAppend​(Record record)
        Description copied from interface: RecordFilter
        Called before appending a record to a stream. This hook enables to change the record or to skip it when returning null.
        Specified by:
        beforeAppend in interface RecordFilter
        Parameters:
        record - the record that will be appended to a stream
      • afterAppend

        public void afterAppend​(Record record,
                                LogOffset offset)
        Description copied from interface: RecordFilter
        Called after a record is appended to a stream.
        Specified by:
        afterAppend in interface RecordFilter
        Parameters:
        record - the written record
        offset - the record's offset
      • afterRead

        public Record afterRead​(Record record,
                                LogOffset offset)
        Description copied from interface: RecordFilter
        Called after reading a record. This hook enables to change the record or to skip it when returning null.
        Specified by:
        afterRead in interface RecordFilter
        Parameters:
        record - the record
        offset - the offset of the record