Enum Class TransientServiceOption

java.lang.Object
java.lang.Enum<TransientServiceOption>
com.linecorp.armeria.server.TransientServiceOption
All Implemented Interfaces:
Serializable, Comparable<TransientServiceOption>, java.lang.constant.Constable

public enum TransientServiceOption extends Enum<TransientServiceOption>
Specifies which features should be enabled for a TransientService. For example, if you do:

 ServerBuilder sb = Server.builder();
 sb.service("/health", HealthCheckService.builder() // A TransientService
                                         .transientServiceOptions(
                                                 TransientServiceOption.WITH_METRIC_COLLECTION,
                                                 TransientServiceOption.WITH_ACCESS_LOGGING)
                                         .build());
 
then, the metric is collected by MetricCollectingService and access logs are produced by AccessLogWriter for the HealthCheckService.