public enum GraphqlSubscriptionTypeEnum extends Enum<GraphqlSubscriptionTypeEnum>
| 枚举常量和说明 |
|---|
GQL_COMPLETE
Server sends this message to indicate that a GraphQL operation is done, and no more data will arrive for the specific operation.
|
GQL_CONNECTION_ACK
The server may responses with this message to the GQL_CONNECTION_INIT from client, indicates the server accepted the connection.
|
GQL_CONNECTION_ERROR
The server may responses with this message to the GQL_CONNECTION_INIT from client, indicates the server rejected the connection.
|
GQL_CONNECTION_INIT
Client sends this message after plain websocket connection to start the communication with the server
|
GQL_CONNECTION_KEEP_ALIVE
Server message that should be sent right after each GQL_CONNECTION_ACK processed and then periodically to keep the client connection alive.
|
GQL_CONNECTION_TERMINATE
Client sends this message to terminate the connection.
|
GQL_DATA
The server sends this message to transfter the GraphQL execution result from the server to the client, this message is a response for GQL_START message.
|
GQL_ERROR
Server sends this message upon a failing operation, before the GraphQL execution, usually due to GraphQL validation errors (resolver errors are part of GQL_DATA message, and will be added as errors array)
|
GQL_START
Client sends this message to execute GraphQL operation
|
GQL_STOP
Client sends this message in order to stop a running GraphQL operation execution (for example: unsubscribe)
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getType() |
static GraphqlSubscriptionTypeEnum |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static GraphqlSubscriptionTypeEnum[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final GraphqlSubscriptionTypeEnum GQL_CONNECTION_INIT
public static final GraphqlSubscriptionTypeEnum GQL_START
public static final GraphqlSubscriptionTypeEnum GQL_STOP
public static final GraphqlSubscriptionTypeEnum GQL_CONNECTION_TERMINATE
public static final GraphqlSubscriptionTypeEnum GQL_CONNECTION_ERROR
public static final GraphqlSubscriptionTypeEnum GQL_CONNECTION_ACK
public static final GraphqlSubscriptionTypeEnum GQL_DATA
public static final GraphqlSubscriptionTypeEnum GQL_ERROR
public static final GraphqlSubscriptionTypeEnum GQL_COMPLETE
public static final GraphqlSubscriptionTypeEnum GQL_CONNECTION_KEEP_ALIVE
public static GraphqlSubscriptionTypeEnum[] values()
for (GraphqlSubscriptionTypeEnum c : GraphqlSubscriptionTypeEnum.values()) System.out.println(c);
public static GraphqlSubscriptionTypeEnum valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getType()
Copyright © 2020. All rights reserved.