Enum GraphQLMessageType
- java.lang.Object
-
- java.lang.Enum<GraphQLMessageType>
-
- org.activiti.cloud.services.notifications.graphql.ws.api.GraphQLMessageType
-
- All Implemented Interfaces:
Serializable,Comparable<GraphQLMessageType>
public enum GraphQLMessageType extends Enum<GraphQLMessageType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPLETECONNECTION_ACKCONNECTION_ERRORCONNECTION_INITCONNECTION_TERMINATEDATAERRORKASTARTSTOP
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GraphQLMessageTypeget(String type)StringtoString()static GraphQLMessageTypevalueOf(String name)Returns the enum constant of this type with the specified name.static GraphQLMessageType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONNECTION_INIT
public static final GraphQLMessageType CONNECTION_INIT
-
CONNECTION_ACK
public static final GraphQLMessageType CONNECTION_ACK
-
CONNECTION_ERROR
public static final GraphQLMessageType CONNECTION_ERROR
-
KA
public static final GraphQLMessageType KA
-
CONNECTION_TERMINATE
public static final GraphQLMessageType CONNECTION_TERMINATE
-
START
public static final GraphQLMessageType START
-
DATA
public static final GraphQLMessageType DATA
-
ERROR
public static final GraphQLMessageType ERROR
-
COMPLETE
public static final GraphQLMessageType COMPLETE
-
STOP
public static final GraphQLMessageType STOP
-
-
Method Detail
-
values
public static GraphQLMessageType[] 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 (GraphQLMessageType c : GraphQLMessageType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GraphQLMessageType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
get
public static GraphQLMessageType get(String type)
-
toString
public String toString()
- Overrides:
toStringin classEnum<GraphQLMessageType>
-
-