public enum SourceAPI extends Enum<SourceAPI>
| Enum Constant and Description |
|---|
CQL
Used for CQL traffic (and gRPC).
|
GRAPHQL
Used for GraphQL API.
|
REST
Used for REST and Docs API, as historically they were one.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
CUSTOM_PAYLOAD_KEY |
| Modifier and Type | Method and Description |
|---|---|
static SourceAPI |
fromCustomPayload(Map<String,ByteBuffer> customPayload,
SourceAPI defaultIfMissing) |
String |
getName() |
void |
toCustomPayload(Map<String,ByteBuffer> customPayload) |
static SourceAPI |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SourceAPI[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SourceAPI GRAPHQL
public static final SourceAPI CQL
public static final SourceAPI REST
public static final String CUSTOM_PAYLOAD_KEY
public static SourceAPI[] values()
for (SourceAPI c : SourceAPI.values()) System.out.println(c);
public static SourceAPI 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 getName()
public void toCustomPayload(Map<String,ByteBuffer> customPayload)
public static SourceAPI fromCustomPayload(Map<String,ByteBuffer> customPayload, SourceAPI defaultIfMissing)
Copyright © 2022. All rights reserved.