Class ReactorEnvironmentPostProcessor

java.lang.Object
org.springframework.boot.reactor.ReactorEnvironmentPostProcessor
All Implemented Interfaces:
EnvironmentPostProcessor, org.springframework.core.Ordered

public class ReactorEnvironmentPostProcessor extends Object implements EnvironmentPostProcessor, org.springframework.core.Ordered
EnvironmentPostProcessor to enable the Reactor global features as early as possible in the startup process.

If the "reactor-tools" dependency is available, the debug agent is enabled by default, unless the "spring.reactor.debug-agent.enabled" configuration property is set to false.

If the "spring.threads.virtual.enabled" property is enabled and the current JVM is 21 or later, then the Reactor System property is set to configure the Bounded Elastic Scheduler to use Virtual Threads globally.

Since:
3.2.0
  • Constructor Details

    • ReactorEnvironmentPostProcessor

      public ReactorEnvironmentPostProcessor()
  • Method Details

    • postProcessEnvironment

      public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, SpringApplication application)
      Description copied from interface: EnvironmentPostProcessor
      Post-process the given environment.
      Specified by:
      postProcessEnvironment in interface EnvironmentPostProcessor
      Parameters:
      environment - the environment to post-process
      application - the application to which the environment belongs
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered