@Configuration
@ConditionalOnClass(value=org.springframework.integration.dsl.IntegrationFlows.class)
@EnableIntegration
@EnableKafka
@ConditionalOnResource(resources="classpath:conf/kafka.json")
public class MessagingApplication
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.List<org.apache.kafka.clients.admin.NewTopic> |
topicList |
| Constructor and Description |
|---|
MessagingApplication() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addTopic(java.util.List<org.apache.kafka.clients.admin.NewTopic> topicList) |
java.util.Map<java.lang.String,java.lang.Object> |
consumerConfigs() |
org.springframework.kafka.core.ConsumerFactory<?,?> |
consumerFactory() |
io.virtualan.message.core.MessagingApplication.ResponseMessage |
getResponseMessage() |
void |
init() |
static boolean |
isTopicExists(java.lang.String topic) |
org.springframework.kafka.core.KafkaTemplate<java.lang.String,java.lang.Object> |
kafkaTemplate() |
org.springframework.integration.dsl.IntegrationFlow |
listenerFromKafkaFlow() |
org.springframework.integration.channel.DirectChannel |
listeningFromTransformer() |
org.springframework.integration.dsl.IntegrationFlow |
outboundGateFlow() |
MessageObject |
parse(org.springframework.messaging.Message<?> message) |
io.virtualan.message.core.MessagingApplication.SendMessage |
postMessage() |
java.util.Map<java.lang.String,java.lang.Object> |
producerConfigs() |
org.springframework.kafka.core.ProducerFactory<java.lang.String,java.lang.Object> |
producerFactory() |
static java.lang.String |
readString(java.io.InputStream inputStream) |
org.springframework.integration.channel.DirectChannel |
sentToTransformer() |
org.springframework.integration.transformer.GenericTransformer<org.springframework.messaging.Message<?>,MessageObject> |
transformer() |
public static java.util.List<org.apache.kafka.clients.admin.NewTopic> topicList
@PostConstruct public void init()
public static java.lang.String readString(java.io.InputStream inputStream)
throws java.io.IOException
java.io.IOExceptionpublic static void addTopic(java.util.List<org.apache.kafka.clients.admin.NewTopic> topicList)
public static boolean isTopicExists(java.lang.String topic)
throws java.lang.Exception
java.lang.Exception@Bean public org.springframework.kafka.core.ProducerFactory<java.lang.String,java.lang.Object> producerFactory()
@Bean public java.util.Map<java.lang.String,java.lang.Object> producerConfigs()
@Bean public java.util.Map<java.lang.String,java.lang.Object> consumerConfigs()
@Bean public org.springframework.kafka.core.ConsumerFactory<?,?> consumerFactory()
@Bean public org.springframework.integration.channel.DirectChannel sentToTransformer()
@Bean public org.springframework.integration.channel.DirectChannel listeningFromTransformer()
@Bean public org.springframework.integration.dsl.IntegrationFlow listenerFromKafkaFlow()
@Bean public org.springframework.integration.transformer.GenericTransformer<org.springframework.messaging.Message<?>,MessageObject> transformer()
@Transformer public MessageObject parse(org.springframework.messaging.Message<?> message)
@Bean public org.springframework.kafka.core.KafkaTemplate<java.lang.String,java.lang.Object> kafkaTemplate()
@Bean public org.springframework.integration.dsl.IntegrationFlow outboundGateFlow()
@Bean public io.virtualan.message.core.MessagingApplication.ResponseMessage getResponseMessage()
@Bean public io.virtualan.message.core.MessagingApplication.SendMessage postMessage()
Copyright © 2020. All Rights Reserved.