Class GenericMessageListener
java.lang.Object
org.reactivecommons.async.kafka.listeners.GenericMessageListener
- Direct Known Subclasses:
ApplicationEventListener,ApplicationNotificationsListener
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGenericMessageListener(ReactiveMessageListener listener, boolean useDLQ, boolean createTopology, long maxRetries, long retryDelay, org.reactivecommons.async.commons.DiscardNotifier discardNotifier, String objectType, org.reactivecommons.async.commons.ext.CustomReporter customReporter, String groupId, List<String> topics) -
Method Summary
Modifier and TypeMethodDescriptionenrichPostProcess(org.reactivecommons.async.commons.communications.Message msg) protected abstract StringgetExecutorPath(reactor.kafka.receiver.ReceiverRecord<String, byte[]> msj) protected reactor.core.publisher.Mono<reactor.kafka.receiver.ReceiverRecord<String,byte[]>> protected voidlogError(Throwable err, reactor.kafka.receiver.ReceiverRecord<String, byte[]> msj, org.reactivecommons.async.commons.FallbackStrategy strategy) protected abstract ObjectparseMessageForReporter(org.reactivecommons.async.commons.communications.Message msj) protected abstract Function<org.reactivecommons.async.commons.communications.Message,reactor.core.publisher.Mono<Object>> rawMessageHandler(String executorPath) protected reactor.core.publisher.Mono<Void>setUpBindings(TopologyCreator creator) voidstartListener(TopologyCreator creator)
-
Field Details
-
DEFAULT_RETRIES
public static final int DEFAULT_RETRIES- See Also:
-
-
Constructor Details
-
GenericMessageListener
public GenericMessageListener(ReactiveMessageListener listener, boolean useDLQ, boolean createTopology, long maxRetries, long retryDelay, org.reactivecommons.async.commons.DiscardNotifier discardNotifier, String objectType, org.reactivecommons.async.commons.ext.CustomReporter customReporter, String groupId, List<String> topics)
-
-
Method Details
-
setUpBindings
-
startListener
-
handle
-
logError
-
rawMessageHandler
-
getExecutorPath
-
enrichPostProcess
-
parseMessageForReporter
protected abstract Object parseMessageForReporter(org.reactivecommons.async.commons.communications.Message msj)
-