Package org.apache.shenyu.common.enums
Enum RpcTypeEnum
- java.lang.Object
-
- java.lang.Enum<RpcTypeEnum>
-
- org.apache.shenyu.common.enums.RpcTypeEnum
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RpcTypeEnum>
public enum RpcTypeEnum extends java.lang.Enum<RpcTypeEnum>
RpcTypeEnum.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BRPCbrpc.DUBBODubbo rpc type enum.GRPCgrpc.HTTPHttp rpc type enum.MOTANmotan.SOFASofa rpc type enum.SPRING_CLOUDspringCloud rpc type enum.TARSTars rpc type enum.WEB_SOCKETWeb socket rpc type enum.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RpcTypeEnumacquireByName(java.lang.String name)acquireByName.static java.util.List<RpcTypeEnum>acquireSupportMetadatas()acquire operator support Metadata RPC type.static java.util.List<RpcTypeEnum>acquireSupports()acquire operator supports.static java.util.List<RpcTypeEnum>acquireSupportSwaggers()acquire operator support swagger type.static java.util.List<RpcTypeEnum>acquireSupportURIs()acquire operator support URI RPC type.java.lang.StringgetName()get name.java.lang.BooleangetSupport()get support.static RpcTypeEnumvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RpcTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HTTP
public static final RpcTypeEnum HTTP
Http rpc type enum.
-
DUBBO
public static final RpcTypeEnum DUBBO
Dubbo rpc type enum.
-
SOFA
public static final RpcTypeEnum SOFA
Sofa rpc type enum.
-
TARS
public static final RpcTypeEnum TARS
Tars rpc type enum.
-
WEB_SOCKET
public static final RpcTypeEnum WEB_SOCKET
Web socket rpc type enum.
-
SPRING_CLOUD
public static final RpcTypeEnum SPRING_CLOUD
springCloud rpc type enum.
-
MOTAN
public static final RpcTypeEnum MOTAN
motan.
-
GRPC
public static final RpcTypeEnum GRPC
grpc.
-
BRPC
public static final RpcTypeEnum BRPC
brpc.
-
-
Method Detail
-
values
public static RpcTypeEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RpcTypeEnum c : RpcTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RpcTypeEnum valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getName
public java.lang.String getName()
get name.- Returns:
- name
-
getSupport
public java.lang.Boolean getSupport()
get support.- Returns:
- support
-
acquireSupports
public static java.util.List<RpcTypeEnum> acquireSupports()
acquire operator supports.- Returns:
- operator support.
-
acquireSupportURIs
public static java.util.List<RpcTypeEnum> acquireSupportURIs()
acquire operator support URI RPC type.- Returns:
- operator support.
-
acquireSupportMetadatas
public static java.util.List<RpcTypeEnum> acquireSupportMetadatas()
acquire operator support Metadata RPC type.- Returns:
- operator support.
-
acquireSupportSwaggers
public static java.util.List<RpcTypeEnum> acquireSupportSwaggers()
acquire operator support swagger type.- Returns:
- operator support.
-
acquireByName
public static RpcTypeEnum acquireByName(java.lang.String name)
acquireByName.- Parameters:
name- this is rpc type- Returns:
- RpcTypeEnum rpc type enum
-
-