Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
glsx-smart-device-kafka-consumer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a874b326
authored
Apr 20, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]kafka消费数据修改
1 parent
7f278364
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
src/main/resources/config/smart-device-consumer-config.xml
src/main/resources/config/smart-device-kafka-consumer.xml
src/main/resources/config/smart-device-consumer-config.xml
View file @
a874b32
...
@@ -20,7 +20,25 @@
...
@@ -20,7 +20,25 @@
</props>
</props>
</property>
</property>
</bean>
</bean>
<bean
id=
"consumerPropertiesOld"
class=
"org.springframework.beans.factory.config.PropertiesFactoryBean"
>
<property
name=
"properties"
>
<props>
<prop
key=
"zookeeper.connect"
>
${assign.zookeeper.connect.new}
</prop>
<prop
key=
"zookeeper.connection.timeout.ms"
>
${assign.zookeeper.connect.timeout.ms}
</prop>
<prop
key=
"zookeeper.session.timeout.ms"
>
${assign.zookeeper.session.timeout.ms}
</prop>
<prop
key=
"group.id"
>
${assign.group.id}
</prop>
<prop
key=
"auto.commit.interval.ms"
>
${auto.commit.interval.ms}
</prop>
<prop
key=
"auto.offset.reset"
>
${auto.offset.reset}
</prop>
<prop
key=
"rebalance.backoff.ms"
>
${assign.rebalance.backoff.ms}
</prop>
<prop
key=
"rebalance.max.retries"
>
${assign.rebalance.max.retries}
</prop>
</props>
</property>
</bean>
<bean
id=
"consumerConfig"
class=
"kafka.consumer.ConsumerConfig"
>
<bean
id=
"consumerConfig"
class=
"kafka.consumer.ConsumerConfig"
>
<constructor-arg
index=
"0"
ref=
"consumerProperties"
/>
<constructor-arg
index=
"0"
ref=
"consumerProperties"
/>
</bean>
</bean>
<bean
id=
"consumerConfigOld"
class=
"kafka.consumer.ConsumerConfig"
>
<constructor-arg
index=
"0"
ref=
"consumerPropertiesOld"
/>
</bean>
</beans>
</beans>
\ No newline at end of file
\ No newline at end of file
src/main/resources/config/smart-device-kafka-consumer.xml
View file @
a874b32
...
@@ -26,21 +26,21 @@
...
@@ -26,21 +26,21 @@
<bean
id=
"edrIgnitionConsumer"
class=
"cn.com.glsx.smart.queue.EdrIgnitionConsumer"
<bean
id=
"edrIgnitionConsumer"
class=
"cn.com.glsx.smart.queue.EdrIgnitionConsumer"
init-method=
"init"
destroy-method=
"destroy"
>
init-method=
"init"
destroy-method=
"destroy"
>
<property
name=
"consumerConfig"
ref=
"consumer
Config
"
/>
<property
name=
"consumerConfig"
ref=
"consumer
PropertiesOld
"
/>
<property
name=
"topic"
value=
"${topic.edrIgnitionConsumer}"
/>
<property
name=
"topic"
value=
"${topic.edrIgnitionConsumer}"
/>
<property
name=
"nThreads"
value=
"${consumer.nThreads}"
/>
<property
name=
"nThreads"
value=
"${consumer.nThreads}"
/>
</bean>
</bean>
<bean
id=
"leaveHomeFlagConsumer"
class=
"cn.com.glsx.smart.queue.LeaveHomeFlagConsumer"
<bean
id=
"leaveHomeFlagConsumer"
class=
"cn.com.glsx.smart.queue.LeaveHomeFlagConsumer"
init-method=
"init"
destroy-method=
"destroy"
>
init-method=
"init"
destroy-method=
"destroy"
>
<property
name=
"consumerConfig"
ref=
"consumer
Config
"
/>
<property
name=
"consumerConfig"
ref=
"consumer
PropertiesOld
"
/>
<property
name=
"topic"
value=
"${topic.leaveHomeFlagConsumer}"
/>
<property
name=
"topic"
value=
"${topic.leaveHomeFlagConsumer}"
/>
<property
name=
"nThreads"
value=
"${consumer.nThreads}"
/>
<property
name=
"nThreads"
value=
"${consumer.nThreads}"
/>
</bean>
</bean>
<bean
id=
"edrFlameOutConsumer"
class=
"cn.com.glsx.smart.queue.EdrFlameOutConsumer"
<bean
id=
"edrFlameOutConsumer"
class=
"cn.com.glsx.smart.queue.EdrFlameOutConsumer"
init-method=
"init"
destroy-method=
"destroy"
>
init-method=
"init"
destroy-method=
"destroy"
>
<property
name=
"consumerConfig"
ref=
"consumer
Config
"
/>
<property
name=
"consumerConfig"
ref=
"consumer
PropertiesOld
"
/>
<property
name=
"topic"
value=
"${topic.edrFlameOutConsumer}"
/>
<property
name=
"topic"
value=
"${topic.edrFlameOutConsumer}"
/>
<property
name=
"nThreads"
value=
"${consumer.nThreads}"
/>
<property
name=
"nThreads"
value=
"${consumer.nThreads}"
/>
</bean>
</bean>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment