Enum Class RpcFunctionType
- All Implemented Interfaces:
Serializable,Comparable<RpcFunctionType>,Constable
How we classify a Perforce RPC function for dispatch, encoding,
and other processing.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription"Simple" client functions, e.g.More complex client functions that will probably cause duplex back-and-forth messaging between client and server.Non-function; mainly serves as an error or guard.Protocol meta functions, e.g.Server functions to be processed by the Perforce server.The normal end-user-initiated perforce functions, e.g. -
Method Summary
Modifier and TypeMethodDescriptionstatic RpcFunctionTypeReturns the enum constant of this class with the specified name.static RpcFunctionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLIENT
"Simple" client functions, e.g. "client-Message" to be processed by the client and that do not (generally...) require further interaction with the server. -
CLIENT_DM
More complex client functions that will probably cause duplex back-and-forth messaging between client and server. -
USER
The normal end-user-initiated perforce functions, e.g. "info" or "depots". -
SERVER
Server functions to be processed by the Perforce server. -
PROTOCOL
Protocol meta functions, e.g. "flush1" or "compress2". -
NONE
Non-function; mainly serves as an error or guard.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getEncodingPrefix
- Returns:
- the string prefix used by this function type when encoded for the wire. E.g. "dm-" for CLIENT_DM, or "user" for USER. The protocol type has no prefix (at least none that I've seen).
-
getTypeNamePrefix
- Returns:
- the name prefix (e.g. "USER_") for this func spec.
-