【发布时间】:2016-08-10 02:03:20
【问题描述】:
我正在使用 redis 列表在我的集成应用程序中像队列一样执行,如下所示:
@Override
protected IntegrationFlowDefinition<?> buildFlow() {
return this.from(this.redisQueueInboundGateway())
.handle(...);
}
@Bean
RedisQueueInboundGateway redisQueueInboundGateway() {
RedisQueueInboundGateway redisQueueInboundGateway = new RedisQueueInboundGateway(Queues.QUEUE_NAME, this.connectionFactory);
redisQueueInboundGateway.setSerializer(genericJackson2JsonRedisSerializer);
return redisQueueInboundGateway;
}
Spring Integration Java DSL中有没有像AMQP这样的工厂类来实现这个?
【问题讨论】: