|
@@ -19,29 +19,16 @@ package com.alibaba.csp.sentinel; |
|
|
* An enum marks resource invocation direction. |
|
|
* An enum marks resource invocation direction. |
|
|
* |
|
|
* |
|
|
* @author jialiang.linjl |
|
|
* @author jialiang.linjl |
|
|
|
|
|
* @author Yanming Zhou |
|
|
*/ |
|
|
*/ |
|
|
public enum EntryType { |
|
|
public enum EntryType { |
|
|
/** |
|
|
/** |
|
|
* Inbound traffic |
|
|
* Inbound traffic |
|
|
*/ |
|
|
*/ |
|
|
IN("IN"), |
|
|
|
|
|
|
|
|
IN, |
|
|
/** |
|
|
/** |
|
|
* Outbound traffic |
|
|
* Outbound traffic |
|
|
*/ |
|
|
*/ |
|
|
OUT("OUT"); |
|
|
|
|
|
|
|
|
OUT; |
|
|
|
|
|
|
|
|
private final String name; |
|
|
|
|
|
|
|
|
|
|
|
EntryType(String s) { |
|
|
|
|
|
name = s; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public boolean equalsName(String otherName) { |
|
|
|
|
|
return name.equals(otherName); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public String toString() { |
|
|
|
|
|
return name; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |