Class InterceptorUtils.AnotherMockRecordInterceptor

java.lang.Object
org.apache.kafka.test.InterceptorUtils.AnotherMockRecordInterceptor
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.kafka.common.Configurable, org.apache.kafka.server.interceptor.RecordInterceptor
Enclosing class:
InterceptorUtils

public static class InterceptorUtils.AnotherMockRecordInterceptor extends Object implements org.apache.kafka.server.interceptor.RecordInterceptor
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.kafka.server.interceptor.RecordInterceptor

    org.apache.kafka.server.interceptor.RecordInterceptor.RecordInterceptorResponse
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Map<String,Object>
     
    static final List<org.apache.kafka.common.record.internal.Record>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configure(Map<String,?> configs)
     
    org.apache.kafka.server.interceptor.RecordInterceptor.RecordInterceptorResponse
    onAppend(org.apache.kafka.common.TopicPartition tp, org.apache.kafka.common.record.internal.Record record)
     

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.kafka.server.interceptor.RecordInterceptor

    close, setMetrics
  • Field Details

    • INTERCEPTED

      public static final List<org.apache.kafka.common.record.internal.Record> INTERCEPTED
    • CONFIGURED

      public static final Map<String,Object> CONFIGURED
  • Constructor Details

    • AnotherMockRecordInterceptor

      public AnotherMockRecordInterceptor()
  • Method Details

    • configure

      public void configure(Map<String,?> configs)
      Specified by:
      configure in interface org.apache.kafka.common.Configurable
      Specified by:
      configure in interface org.apache.kafka.server.interceptor.RecordInterceptor
    • onAppend

      public org.apache.kafka.server.interceptor.RecordInterceptor.RecordInterceptorResponse onAppend(org.apache.kafka.common.TopicPartition tp, org.apache.kafka.common.record.internal.Record record)
      Specified by:
      onAppend in interface org.apache.kafka.server.interceptor.RecordInterceptor