public enum RpcFunctionType extends Enum<RpcFunctionType>
Enum Constant and Description |
---|
CLIENT
"Simple" client functions, e.g.
|
CLIENT_DM
More complex client functions that will probably cause
duplex back-and-forth messaging between client and server.
|
NONE
Non-function; mainly serves as an error or guard.
|
PROTOCOL
Protocol meta functions, e.g.
|
SERVER
Server functions to be processed by the Perforce server.
|
USER
The normal end-user-initiated perforce functions, e.g.
|
Modifier and Type | Method and Description |
---|---|
String |
getEncodingPrefix()
Get the string prefix used by this function type when encoded
for the wire.
|
String |
getTypeNamePrefix()
Return the name prefix (e.g.
|
static RpcFunctionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RpcFunctionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RpcFunctionType CLIENT
public static final RpcFunctionType CLIENT_DM
public static final RpcFunctionType USER
public static final RpcFunctionType SERVER
public static final RpcFunctionType PROTOCOL
public static final RpcFunctionType NONE
public static RpcFunctionType[] values()
for (RpcFunctionType c : RpcFunctionType.values()) System.out.println(c);
public static RpcFunctionType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getEncodingPrefix()
public String getTypeNamePrefix()
Copyright © 2017 Perforce Software. All Rights Reserved.