public class DefaultFeatureFlaggingService extends Object implements ProfilingFeatureFlaggingService, org.mule.runtime.api.lifecycle.Disposable
FeatureFlaggingService| Constructor and Description |
|---|
DefaultFeatureFlaggingService(String artifactId,
Map<org.mule.runtime.api.config.Feature,Boolean> features) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
String |
getArtfactName() |
ProfilingDataProducerStatus |
getProfilingDataProducerStatus(org.mule.runtime.api.profiling.type.ProfilingEventType<?> profilingEventType,
org.mule.runtime.api.profiling.ProfilingProducerScope profilingProducerContext)
Gets a
ProfilingDataProducerStatus according to a ProfilingProducerScope. |
boolean |
isEnabled(org.mule.runtime.api.config.Feature feature) |
void |
registerProfilingFeature(org.mule.runtime.api.profiling.type.ProfilingEventType<?> profilingEventType,
String identifier)
Register a profiling feature associated to a
ProfilingEventType using a profiling feature identifier. |
void |
toggleProfilingFeature(org.mule.runtime.api.profiling.type.ProfilingEventType<?> profilingEventType,
String profilingFeatureSuffix,
boolean status)
enables/disables a feature
|
public boolean isEnabled(org.mule.runtime.api.config.Feature feature)
isEnabled in interface org.mule.runtime.api.config.FeatureFlaggingServicepublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposablepublic ProfilingDataProducerStatus getProfilingDataProducerStatus(org.mule.runtime.api.profiling.type.ProfilingEventType<?> profilingEventType, org.mule.runtime.api.profiling.ProfilingProducerScope profilingProducerContext)
ProfilingFeatureFlaggingServiceProfilingDataProducerStatus according to a ProfilingProducerScope.getProfilingDataProducerStatus in interface ProfilingFeatureFlaggingServiceprofilingEventType - the ProfilingEventType.profilingProducerContext - the ProfilingProducerScope.ProfilingDataProducerStatuspublic void registerProfilingFeature(org.mule.runtime.api.profiling.type.ProfilingEventType<?> profilingEventType,
String identifier)
ProfilingFeatureFlaggingServiceProfilingEventType using a profiling feature identifier.registerProfilingFeature in interface ProfilingFeatureFlaggingServicepublic void toggleProfilingFeature(org.mule.runtime.api.profiling.type.ProfilingEventType<?> profilingEventType,
String profilingFeatureSuffix,
boolean status)
ProfilingFeatureFlaggingServicetoggleProfilingFeature in interface ProfilingFeatureFlaggingServiceprofilingEventType - the ProfilingEventType to toggle.profilingFeatureSuffix - the identifier for the profiling feature.status - the status to set.public String getArtfactName()
Copyright © 2003–2023 MuleSoft, Inc.. All rights reserved.