
io.github.kilmajster.ngrok.configuration.NgrokAsyncConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ngrok-spring-boot-starter Show documentation
Show all versions of ngrok-spring-boot-starter Show documentation
🚀 Spring Boot tunneling with Ngrok made easy! No matter if you are using Windows, Mac OS X, Linux or even Docker - ngrok binary will be chosen automatically 🤖 so you don't need to care about environment changing etc. auto-configuration magic 🧙♂️
package io.github.kilmajster.ngrok.configuration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.task.SimpleAsyncTaskExecutor;
import org.springframework.core.task.TaskExecutor;
@ConditionalOnProperty(name = "ngrok.enabled", havingValue = "true")
@Configuration
public class NgrokAsyncConfiguration {
private static final String NGROK_THREAD_PREFIX = "ngrok-thread-";
@Bean("ngrokExecutor")
public TaskExecutor ngrokAsyncExecutor() {
return new SimpleAsyncTaskExecutor(NGROK_THREAD_PREFIX);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy