public enum GraphQlWebSocketMessageType extends Enum<GraphQlWebSocketMessageType>
| Enum Constant and Description |
|---|
COMPLETE |
CONNECTION_ACK |
CONNECTION_INIT |
ERROR |
NEXT |
NOT_SPECIFIED
Indicates the GraphQL message did not have a message type.
|
PING |
PONG |
SUBSCRIBE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doesNotRequirePayload()
Return if the message type has a payload, and it is required.
|
static GraphQlWebSocketMessageType |
fromValue(String value) |
String |
toString() |
String |
value()
The protocol value for the message type.
|
static GraphQlWebSocketMessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GraphQlWebSocketMessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GraphQlWebSocketMessageType CONNECTION_INIT
public static final GraphQlWebSocketMessageType CONNECTION_ACK
public static final GraphQlWebSocketMessageType PING
public static final GraphQlWebSocketMessageType PONG
public static final GraphQlWebSocketMessageType SUBSCRIBE
public static final GraphQlWebSocketMessageType NEXT
public static final GraphQlWebSocketMessageType ERROR
public static final GraphQlWebSocketMessageType COMPLETE
public static final GraphQlWebSocketMessageType NOT_SPECIFIED
public static GraphQlWebSocketMessageType[] values()
for (GraphQlWebSocketMessageType c : GraphQlWebSocketMessageType.values()) System.out.println(c);
public static GraphQlWebSocketMessageType 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 value()
public boolean doesNotRequirePayload()
public static GraphQlWebSocketMessageType fromValue(String value)
public String toString()
toString in class Enum<GraphQlWebSocketMessageType>