org.apache.camel.component.micrometer.routepolicy.MicrometerRoutePolicyConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camel-micrometer Show documentation
Show all versions of camel-micrometer Show documentation
Camel Micrometer based monitoring component
The newest version!
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.component.micrometer.routepolicy;
import java.util.function.Consumer;
import io.micrometer.core.instrument.LongTaskTimer;
import io.micrometer.core.instrument.Timer;
public class MicrometerRoutePolicyConfiguration {
public static final MicrometerRoutePolicyConfiguration DEFAULT = new MicrometerRoutePolicyConfiguration();
private boolean contextEnabled = true;
private boolean routeEnabled = true;
private String excludePattern;
private boolean additionalCounters = true;
private boolean exchangesSucceeded = true;
private boolean exchangesFailed = true;
private boolean exchangesTotal = true;
private boolean externalRedeliveries = true;
private boolean failuresHandled = true;
private boolean longTask;
private Consumer timerInitiator;
private Consumer longTaskInitiator;
public boolean isContextEnabled() {
return contextEnabled;
}
public void setContextEnabled(boolean contextEnabled) {
this.contextEnabled = contextEnabled;
}
public boolean isRouteEnabled() {
return routeEnabled;
}
public void setRouteEnabled(boolean routeEnabled) {
this.routeEnabled = routeEnabled;
}
public String getExcludePattern() {
return excludePattern;
}
public void setExcludePattern(String excludePattern) {
this.excludePattern = excludePattern;
}
public boolean isAdditionalCounters() {
return additionalCounters;
}
public void setAdditionalCounters(boolean additionalCounters) {
this.additionalCounters = additionalCounters;
}
public boolean isExchangesSucceeded() {
return exchangesSucceeded;
}
public void setExchangesSucceeded(boolean exchangesSucceeded) {
this.exchangesSucceeded = exchangesSucceeded;
}
public boolean isExchangesFailed() {
return exchangesFailed;
}
public void setExchangesFailed(boolean exchangesFailed) {
this.exchangesFailed = exchangesFailed;
}
public boolean isExchangesTotal() {
return exchangesTotal;
}
public void setExchangesTotal(boolean exchangesTotal) {
this.exchangesTotal = exchangesTotal;
}
public boolean isExternalRedeliveries() {
return externalRedeliveries;
}
public void setExternalRedeliveries(boolean externalRedeliveries) {
this.externalRedeliveries = externalRedeliveries;
}
public boolean isFailuresHandled() {
return failuresHandled;
}
public void setFailuresHandled(boolean failuresHandled) {
this.failuresHandled = failuresHandled;
}
public boolean isLongTask() {
return longTask;
}
public void setLongTask(boolean longTask) {
this.longTask = longTask;
}
public Consumer getTimerInitiator() {
return timerInitiator;
}
public void setTimerInitiator(Consumer timerInitiator) {
this.timerInitiator = timerInitiator;
}
public Consumer getLongTaskInitiator() {
return longTaskInitiator;
}
public void setLongTaskInitiator(Consumer longTaskInitiator) {
this.longTaskInitiator = longTaskInitiator;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy