use of com.alibaba.rsocket.rpc.RSocketResponderHandler in project alibaba-rsocket-broker by alibaba.
the class RSocketAutoConfiguration method rsocketResponderHandlerFactoryWithZipkin.
@Bean
@ConditionalOnMissingBean
@ConditionalOnBean(type = "brave.Tracing")
public RSocketResponderHandlerFactory rsocketResponderHandlerFactoryWithZipkin(@Autowired LocalReactiveServiceCaller serviceCaller, @Autowired @Qualifier("reactiveCloudEventProcessor") TopicProcessor<CloudEventImpl> eventProcessor) {
return (setupPayload, requester) -> Mono.fromCallable(() -> {
RSocketResponderHandler responderHandler = new RSocketResponderHandler(serviceCaller, eventProcessor, requester, setupPayload);
Tracing tracing = applicationContext.getBean(Tracing.class);
responderHandler.setTracer(tracing.tracer());
return responderHandler;
});
}
Aggregations