Class AbstractFilteringMessageListener<K,V,T>
java.lang.Object
org.springframework.kafka.listener.adapter.AbstractDelegatingMessageListenerAdapter<T>
org.springframework.kafka.listener.adapter.AbstractFilteringMessageListener<K,V,T>
- Type Parameters:
K- the key type.V- the value type.T- the delegate type.
- All Implemented Interfaces:
ConsumerSeekAware, DelegatingMessageListener<T>
- Direct Known Subclasses:
FilteringBatchMessageListenerAdapter, FilteringMessageListenerAdapter
public abstract class AbstractFilteringMessageListener<K,V,T>
extends AbstractDelegatingMessageListenerAdapter<T>
An abstract message listener adapter that implements record filter logic
via a
RecordFilterStrategy.-
Nested Class Summary
Nested classes/interfaces inherited from interface ConsumerSeekAware
ConsumerSeekAware.ConsumerSeekCallback -
Field Summary
Fields inherited from class AbstractDelegatingMessageListenerAdapter
delegate, delegateType, logger -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFilteringMessageListener(T delegate, RecordFilterStrategy<K, V> recordFilterStrategy) -
Method Summary
Methods inherited from class AbstractDelegatingMessageListenerAdapter
getDelegate, onIdleContainer, onPartitionsAssigned, onPartitionsRevoked, registerSeekCallbackMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ConsumerSeekAware
onFirstPoll, unregisterSeekCallback
-
Constructor Details
-
AbstractFilteringMessageListener
protected AbstractFilteringMessageListener(T delegate, RecordFilterStrategy<K, V> recordFilterStrategy)
-
-
Method Details
-
getRecordFilterStrategy
-
filter
-