Package io.micronaut.pulsar.processor
Class DefaultListener
java.lang.Object
io.micronaut.pulsar.processor.DefaultListener
- All Implemented Interfaces:
MessageListenerResolver
,Serializable
,org.apache.pulsar.client.api.MessageListener
Default listener for incoming Pulsar messages.
- Since:
- 1.0
- Author:
- Haris Secic
- See Also:
-
Constructor Summary
ConstructorDescriptionDefaultListener
(io.micronaut.inject.ExecutableMethod method, boolean useMessageWrapper, Object invoker, PulsarArgumentHandler argumentHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
received
(org.apache.pulsar.client.api.Consumer consumer, org.apache.pulsar.client.api.Message msg) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.pulsar.client.api.MessageListener
reachedEndOfTopic
-
Constructor Details
-
DefaultListener
public DefaultListener(io.micronaut.inject.ExecutableMethod method, boolean useMessageWrapper, Object invoker, PulsarArgumentHandler argumentHandler)
-
-
Method Details
-
received
public void received(org.apache.pulsar.client.api.Consumer consumer, org.apache.pulsar.client.api.Message msg) - Specified by:
received
in interfaceorg.apache.pulsar.client.api.MessageListener
-