Class ReactorResourceFactory
java.lang.Object
org.springframework.http.client.ReactorResourceFactory
org.springframework.http.client.reactive.ReactorResourceFactory
- All Implemented Interfaces:
DisposableBean
,InitializingBean
,Lifecycle
Deprecated.
Factory to manage Reactor Netty resources, i.e.
LoopResources
for
event loop threads, and ConnectionProvider
for the connection pool,
within the lifecycle of a Spring ApplicationContext
.
This factory implements InitializingBean
, DisposableBean
and Lifecycle
and is expected typically to be declared as a
Spring-managed bean.
Notice that after a Lifecycle
stop/restart, new instances of
the configured LoopResources
and ConnectionProvider
are
created, so any references to those should be updated.
- Since:
- 5.1
- Author:
- Rossen Stoyanchev, Brian Clozel, Sebastien Deleuze
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.http.client.ReactorResourceFactory
addGlobalResourcesConsumer, afterPropertiesSet, destroy, getConnectionProvider, getLoopResources, isRunning, isUseGlobalResources, setConnectionProvider, setConnectionProviderSupplier, setLoopResources, setLoopResourcesSupplier, setShutdownQuietPeriod, setShutdownTimeout, setUseGlobalResources, start, stop
-
Constructor Details
-
ReactorResourceFactory
public ReactorResourceFactory()Deprecated.
-
ReactorResourceFactory
instead.