类 ResourceWrapper

java.lang.Object
com.alibaba.csp.sentinel.slotchain.ResourceWrapper
直接已知子类:
MethodResourceWrapper, StringResourceWrapper

public abstract class ResourceWrapper extends Object
A wrapper of resource name and type.
作者:
qinan.qn, jialiang.linjl, Eric Zhao
  • 字段详细资料

    • name

      protected final String name
    • entryType

      protected final EntryType entryType
    • resourceType

      protected final int resourceType
  • 构造器详细资料

    • ResourceWrapper

      public ResourceWrapper(String name, EntryType entryType, int resourceType)
  • 方法详细资料

    • getName

      public String getName()
      Get the resource name.
      返回:
      the resource name
    • getEntryType

      public EntryType getEntryType()
      Get EntryType of this wrapper.
      返回:
      EntryType of this wrapper.
    • getResourceType

      public int getResourceType()
      Get the classification of this resource.
      返回:
      the classification of this resource
      从以下版本开始:
      1.7.0
    • getShowName

      public abstract String getShowName()
      Get the beautified resource name to be showed.
      返回:
      the beautified resource name
    • hashCode

      public int hashCode()
      Only getName() is considered.
      覆盖:
      hashCode 在类中 Object
    • equals

      public boolean equals(Object obj)
      Only getName() is considered.
      覆盖:
      equals 在类中 Object