001/** 002 * Copyright (c) 2015-2022, Michael Yang 杨福海 (fuhai999@gmail.com). 003 * <p> 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * <p> 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * <p> 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package io.jboot.components.limiter; 017 018 019import java.lang.reflect.Method; 020 021public class LimitInfo { 022 023 private String resource; 024 private String type; 025 private double rate; 026 private String failback; 027 private Method failbackMethod; 028 029 030 public String getResource() { 031 return resource; 032 } 033 034 public void setResource(String resource) { 035 this.resource = resource; 036 } 037 038 public String getType() { 039 return type; 040 } 041 042 public void setType(String type) { 043 this.type = type; 044 } 045 046 public double getRate() { 047 return rate; 048 } 049 050 public void setRate(double rate) { 051 this.rate = rate; 052 } 053 054 public String getFailback() { 055 return failback; 056 } 057 058 public void setFailback(String failback) { 059 this.failback = failback; 060 } 061 062 public Method getFailbackMethod() { 063 return failbackMethod; 064 } 065 066 public void setFailbackMethod(Method failbackMethod) { 067 this.failbackMethod = failbackMethod; 068 } 069}