001/** 002 * Licensed to the Apache Software Foundation (ASF) under one or more 003 * contributor license agreements. See the NOTICE file distributed with 004 * this work for additional information regarding copyright ownership. 005 * The ASF licenses this file to You under the Apache License, Version 2.0 006 * (the "License"); you may not use this file except in compliance with 007 * the License. You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017package org.apache.camel.api.management.mbean; 018 019import org.apache.camel.api.management.ManagedAttribute; 020 021public interface ManagedErrorHandlerMBean { 022 023 @ManagedAttribute(description = "Camel ID") 024 String getCamelId(); 025 026 @ManagedAttribute(description = "Camel ManagementName") 027 String getCamelManagementName(); 028 029 @ManagedAttribute(description = "Does the error handler support redelivery") 030 boolean isSupportRedelivery(); 031 032 @ManagedAttribute(description = "Is this error handler a dead letter channel") 033 boolean isDeadLetterChannel(); 034 035 @ManagedAttribute(description = "When a message is moved to dead letter channel is it the original message or recent message") 036 boolean isDeadLetterUseOriginalMessage(); 037 038 @ManagedAttribute(description = "Does this error handler handle new exceptions which may occur during error handling") 039 boolean isDeadLetterHandleNewException(); 040 041 @ManagedAttribute(description = "Does this error handler support transactions") 042 boolean isSupportTransactions(); 043 044 @ManagedAttribute(description = "Endpoint Uri for the dead letter channel where dead message is move to", mask = true) 045 String getDeadLetterChannelEndpointUri(); 046 047 @ManagedAttribute(description = "RedeliveryPolicy for maximum redeliveries") 048 Integer getMaximumRedeliveries(); 049 050 @ManagedAttribute(description = "RedeliveryPolicy for maximum redeliveries") 051 void setMaximumRedeliveries(Integer maximum); 052 053 @ManagedAttribute(description = "RedeliveryPolicy for maximum redelivery delay") 054 Long getMaximumRedeliveryDelay(); 055 056 @ManagedAttribute(description = "RedeliveryPolicy for maximum redelivery delay") 057 void setMaximumRedeliveryDelay(Long delay); 058 059 @ManagedAttribute(description = "RedeliveryPolicy for redelivery delay") 060 Long getRedeliveryDelay(); 061 062 @ManagedAttribute(description = "RedeliveryPolicy for redelivery delay") 063 void setRedeliveryDelay(Long delay); 064 065 @ManagedAttribute(description = "RedeliveryPolicy for backoff multiplier") 066 Double getBackOffMultiplier(); 067 068 @ManagedAttribute(description = "RedeliveryPolicy for backoff multiplier") 069 void setBackOffMultiplier(Double multiplier); 070 071 @ManagedAttribute(description = "RedeliveryPolicy for collision avoidance factor") 072 Double getCollisionAvoidanceFactor(); 073 074 @ManagedAttribute(description = "RedeliveryPolicy for collision avoidance factor") 075 void setCollisionAvoidanceFactor(Double factor); 076 077 @ManagedAttribute(description = "RedeliveryPolicy for collision avoidance percent") 078 Double getCollisionAvoidancePercent(); 079 080 @ManagedAttribute(description = "RedeliveryPolicy for collision avoidance percent") 081 void setCollisionAvoidancePercent(Double percent); 082 083 @ManagedAttribute(description = "RedeliveryPolicy for delay pattern") 084 String getDelayPattern(); 085 086 @ManagedAttribute(description = "RedeliveryPolicy for delay pattern") 087 void setDelayPattern(String pattern); 088 089 @ManagedAttribute(description = "RedeliveryPolicy for logging level when retries exhausted") 090 String getRetriesExhaustedLogLevel(); 091 092 @ManagedAttribute(description = "RedeliveryPolicy for logging level when retries exhausted") 093 void setRetriesExhaustedLogLevel(String level); 094 095 @ManagedAttribute(description = "RedeliveryPolicy for logging level when attempting retry") 096 String getRetryAttemptedLogLevel(); 097 098 @ManagedAttribute(description = "RedeliveryPolicy for logging level when attempting retry") 099 void setRetryAttemptedLogLevel(String level); 100 101 @ManagedAttribute(description = "RedeliveryPolicy for logging stack traces") 102 Boolean getLogStackTrace(); 103 104 @ManagedAttribute(description = "RedeliveryPolicy for logging stack traces") 105 void setLogStackTrace(Boolean log); 106 107 @ManagedAttribute(description = "RedeliveryPolicy for logging redelivery stack traces") 108 Boolean getLogRetryStackTrace(); 109 110 @ManagedAttribute(description = "RedeliveryPolicy for logging redelivery stack traces") 111 void setLogRetryStackTrace(Boolean log); 112 113 @ManagedAttribute(description = "RedeliveryPolicy for logging handled exceptions") 114 Boolean getLogHandled(); 115 116 @ManagedAttribute(description = "RedeliveryPolicy for logging handled exceptions") 117 void setLogHandled(Boolean log); 118 119 @ManagedAttribute(description = "RedeliveryPolicy for logging new exceptions") 120 Boolean getLogNewException(); 121 122 @ManagedAttribute(description = "RedeliveryPolicy for logging new exceptions") 123 void setLogNewException(Boolean log); 124 125 @ManagedAttribute(description = "RedeliveryPolicy for logging handled and continued exceptions") 126 Boolean getLogContinued(); 127 128 @ManagedAttribute(description = "RedeliveryPolicy for logging handled and continued exceptions") 129 void setLogContinued(Boolean log); 130 131 @ManagedAttribute(description = "RedeliveryPolicy for logging exhausted exceptions") 132 Boolean getLogExhausted(); 133 134 @ManagedAttribute(description = "RedeliveryPolicy for logging exhausted exceptions") 135 void setLogExhausted(Boolean log); 136 137 @ManagedAttribute(description = "RedeliveryPolicy for using collision avoidance") 138 Boolean getUseCollisionAvoidance(); 139 140 @ManagedAttribute(description = "RedeliveryPolicy for using collision avoidance") 141 void setUseCollisionAvoidance(Boolean avoidance); 142 143 @ManagedAttribute(description = "RedeliveryPolicy for using exponential backoff") 144 Boolean getUseExponentialBackOff(); 145 146 @ManagedAttribute(description = "RedeliveryPolicy for using exponential backoff") 147 void setUseExponentialBackOff(Boolean backoff); 148 149}