org.springframework.http.client.reactive.ReactorResourceFactory Java Examples

The following examples show how to use org.springframework.http.client.reactive.ReactorResourceFactory. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WebClientDataBufferAllocatingTests.java    From spring-analysis-note with MIT License 5 votes vote down vote up
@Before
public void setUp() {

	this.factory = new ReactorResourceFactory();
	this.factory.afterPropertiesSet();

	this.server = new MockWebServer();
	this.webClient = WebClient
			.builder()
			.clientConnector(initConnector())
			.baseUrl(this.server.url("/").toString())
			.build();
}
 
Example #2
Source File: WebClientDataBufferAllocatingTests.java    From java-technology-stack with MIT License 5 votes vote down vote up
@Before
public void setUp() {

	this.factory = new ReactorResourceFactory();
	this.factory.afterPropertiesSet();

	this.server = new MockWebServer();
	this.webClient = WebClient
			.builder()
			.clientConnector(initConnector())
			.baseUrl(this.server.url("/").toString())
			.build();
}
 
Example #3
Source File: RSocketWebServerFactoryAutoConfiguration.java    From spring-boot-rsocket with Apache License 2.0 5 votes vote down vote up
@Bean
public RSocketNettyReactiveWebServerFactory rSocketNettyReactiveWebServerFactory(
		ReactorResourceFactory resourceFactory,
		RSocketServerProperties rSocketServerProperties,
		SocketAcceptor socketAcceptor,
		Collection<RSocketReceiverCustomizer> customizers
) {
	RSocketNettyReactiveWebServerFactory serverFactory = new RSocketNettyReactiveWebServerFactory();
	serverFactory.setResourceFactory(resourceFactory);
	serverFactory.setSocketAcceptor(socketAcceptor);
	serverFactory.setPath(rSocketServerProperties.getPath());
	serverFactory.setRSocketCustomizers(customizers);
	return serverFactory;
}
 
Example #4
Source File: RSocketWebServerFactoryAutoConfiguration.java    From spring-boot-rsocket with Apache License 2.0 4 votes vote down vote up
@Bean
@ConditionalOnMissingBean
public ReactorResourceFactory reactorServerResourceFactory() {
	return new ReactorResourceFactory();
}
 
Example #5
Source File: RSocketNettyReactiveWebServerFactory.java    From spring-boot-rsocket with Apache License 2.0 2 votes vote down vote up
/**
 * Set the {@link ReactorResourceFactory} to get the shared resources from.
 * @param resourceFactory the server resources
 * @since 2.1.0
 */
public void setResourceFactory(ReactorResourceFactory resourceFactory) {
	this.resourceFactory = resourceFactory;
}