Class MyPojo
- java.lang.Object
-
- org.springframework.kafka.jdocs.dynamic.MyPojo
-
public class MyPojo extends java.lang.Object
Pojo for dynamic listener creation.- Since:
- 2.8.9
- Author:
- Gary Russell
-
-
Constructor Summary
Constructors Constructor Description MyPojo(java.lang.String id, java.lang.String topic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getId()
java.lang.String
getTopic()
void
listen(java.lang.String in)
-
-
-
Method Detail
-
getId
public java.lang.String getId()
-
getTopic
public java.lang.String getTopic()
-
listen
@KafkaListener(id="#{__listener.id}", topics="#{__listener.topic}") public void listen(java.lang.String in)
-
-