@Service
public class RequestHandlerRegistry
extends java.lang.Object
implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) java.util.Map<java.lang.String,RequestHandler> |
registryHandlers |
private TpsMonitorManager |
tpsMonitorManager |
| 构造器和说明 |
|---|
RequestHandlerRegistry() |
| 限定符和类型 | 方法和说明 |
|---|---|
RequestHandler |
getByRequestType(java.lang.String requestType)
Get Request Handler By request Type.
|
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) |
java.util.Map<java.lang.String,RequestHandler> registryHandlers
@Autowired private TpsMonitorManager tpsMonitorManager
public RequestHandler getByRequestType(java.lang.String requestType)
requestType - see definitions of sub constants classes of RequestTypeConstantspublic void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>Copyright © 2018–2022 Alibaba Group. All rights reserved.