Enum GraphQLWsResponse.ServerType
- java.lang.Object
-
- java.lang.Enum<GraphQLWsResponse.ServerType>
-
- io.micronaut.configuration.graphql.ws.GraphQLWsResponse.ServerType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<GraphQLWsResponse.ServerType>
- Enclosing class:
- GraphQLWsResponse
public static enum GraphQLWsResponse.ServerType extends java.lang.Enum<GraphQLWsResponse.ServerType>
Types of messages send to the client.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GQL_COMPLETEGQL_CONNECTION_ACKGQL_CONNECTION_ERRORGQL_CONNECTION_KEEP_ALIVEGQL_DATAGQL_ERROR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetType()Get the type.static GraphQLWsResponse.ServerTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static GraphQLWsResponse.ServerType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GQL_CONNECTION_ACK
public static final GraphQLWsResponse.ServerType GQL_CONNECTION_ACK
-
GQL_CONNECTION_ERROR
public static final GraphQLWsResponse.ServerType GQL_CONNECTION_ERROR
-
GQL_DATA
public static final GraphQLWsResponse.ServerType GQL_DATA
-
GQL_ERROR
public static final GraphQLWsResponse.ServerType GQL_ERROR
-
GQL_COMPLETE
public static final GraphQLWsResponse.ServerType GQL_COMPLETE
-
GQL_CONNECTION_KEEP_ALIVE
public static final GraphQLWsResponse.ServerType GQL_CONNECTION_KEEP_ALIVE
-
-
Method Detail
-
values
public static GraphQLWsResponse.ServerType[] 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 (GraphQLWsResponse.ServerType c : GraphQLWsResponse.ServerType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GraphQLWsResponse.ServerType 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
-
getType
public java.lang.String getType()
Get the type.- Returns:
- type as string
-
-