Class SimpleSubscriber
- java.lang.Object
-
- io.micronaut.gcp.pubsub.subscriber.SimpleSubscriber
-
@PubSubListener public class SimpleSubscriber extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SimpleSubscriber()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onMessage(Animal animal)
void
onMessageEU(Animal animal)
-
-
-
Method Detail
-
onMessage
@Subscription("animals") public void onMessage(Animal animal)
-
onMessageEU
@Subscription("projects/eu-project/subscriptions/animals") public void onMessageEU(Animal animal)
-
-