1234567891011121314151617181920212223242526 |
- <?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:aop="http://www.springframework.org/schema/aop"
- xmlns:context="http://www.springframework.org/schema/context"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd">
-
- <bean id="EventManager" class="com.rtrh.event.DefaultEventManager">
- <property name="eventTaskExecutor">
- <!-- 配置线程池 -->
- <bean class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor">
- <!-- 线程池维护线程的最少数量 -->
- <property name="corePoolSize" value="100" />
- <!-- 线程池维护线程所允许的空闲时间 -->
- <property name="keepAliveSeconds" value="30000" />
- <!-- 线程池维护线程的最大数量 -->
- <property name="maxPoolSize" value="1000" />
- <!-- 线程池所使用的缓冲队列 -->
- <property name="queueCapacity" value="200" />
- </bean>
- </property>
- </bean>
- </beans>
|