All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.kilmajster.ngrok.configuration.NgrokAsyncConfiguration Maven / Gradle / Ivy

Go to download

🚀 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 🧙‍♂️

There is a newer version: 0.9.2
Show newest version
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