com.nepxion.discovery.plugin.framework.event.RuleFailureEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of discovery-plugin-framework-starter Show documentation
Show all versions of discovery-plugin-framework-starter Show documentation
Nepxion Discovery is a solution for Spring Cloud with blue green, gray, weight, limitation, circuit breaker, degrade, isolation, monitor, tracing, dye, failover, async agent
The newest version!
package com.nepxion.discovery.plugin.framework.event;
/**
* Title: Nepxion Discovery
* Description: Nepxion Discovery
* Copyright: Copyright (c) 2017-2050
* Company: Nepxion
* @author Haojun Ren
* @version 1.0
*/
import java.io.Serializable;
import com.nepxion.discovery.common.entity.SubscriptionType;
public class RuleFailureEvent implements Serializable {
private static final long serialVersionUID = 954041724496099958L;
private SubscriptionType subscriptionType;
private String rule;
private Exception exception;
public RuleFailureEvent(SubscriptionType subscriptionType, String rule, Exception exception) {
this.subscriptionType = subscriptionType;
this.rule = rule;
this.exception = exception;
}
public SubscriptionType getSubscriptionType() {
return subscriptionType;
}
public String getRule() {
return rule;
}
public Exception getException() {
return exception;
}
public void setException(Exception exception) {
this.exception = exception;
}
}