<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	   xmlns:int="http://www.springframework.org/schema/integration"
	   xmlns:int-redis="http://www.springframework.org/schema/integration/redis"
	   xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/integration https://www.springframework.org/schema/integration/spring-integration.xsd
		http://www.springframework.org/schema/integration/redis https://www.springframework.org/schema/integration/redis/spring-integration-redis.xsd">

	<bean id="redisConnectionFactory" class="org.springframework.integration.redis.RedisContainerTest"
		  factory-method="connectionFactory"/>

	<int-redis:inbound-channel-adapter
			id="adapter" topics="foo" topic-patterns="f*, b*" channel="receiveChannel" error-channel="testErrorChannel"
			message-converter="testConverter"
			serializer="serializer"
			task-executor="executor"
			auto-startup="false"/>

	<bean id="executor" class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor">
		<property name="corePoolSize" value="5"/>
		<property name="maxPoolSize" value="10"/>
		<property name="queueCapacity" value="25"/>
	</bean>

	<int:channel id="receiveChannel">
		<int:queue/>
	</int:channel>

	<int:channel id="testErrorChannel"/>

	<bean id="testConverter"
		  class="org.springframework.integration.redis.config.RedisInboundChannelAdapterParserTests$TestMessageConverter"/>

	<int-redis:inbound-channel-adapter
			id="autoChannel" topics="foo1, bar1" error-channel="testErrorChannel"
			message-converter="testConverter" auto-startup="false"/>

	<bean id="serializer" class="org.springframework.data.redis.serializer.StringRedisSerializer"/>

	<int:bridge input-channel="autoChannel" output-channel="nullChannel"/>

	<int-redis:inbound-channel-adapter id="withoutSerializer" topics="foo" auto-startup="false" serializer=""/>


</beans>
