Search in sources :

Example 1 with PayaraExecutorService

use of fish.payara.nucleus.executorservice.PayaraExecutorService in project Payara by payara.

the class MetricsServiceImpl method init.

@PostConstruct
public void init() {
    metricsServiceConfiguration = serviceLocator.getService(MetricsServiceConfiguration.class);
    // Only start if metrics are enabled
    if (isEnabled()) {
        PayaraExecutorService payaraExecutor = serviceLocator.getService(PayaraExecutorService.class, new Annotation[0]);
        payaraExecutor.submit(this::bootstrap);
    }
}
Also used : MetricsServiceConfiguration(fish.payara.microprofile.metrics.admin.MetricsServiceConfiguration) PayaraExecutorService(fish.payara.nucleus.executorservice.PayaraExecutorService) PostConstruct(javax.annotation.PostConstruct)

Aggregations

MetricsServiceConfiguration (fish.payara.microprofile.metrics.admin.MetricsServiceConfiguration)1 PayaraExecutorService (fish.payara.nucleus.executorservice.PayaraExecutorService)1 PostConstruct (javax.annotation.PostConstruct)1