public enum Serializers extends Enum<Serializers>
Enum Constant and Description |
---|
GRAPHSON |
GRAPHSON_V1D0 |
GRAPHSON_V2D0 |
GRYO_LITE_V1D0 |
GRYO_V1D0 |
Modifier and Type | Field and Description |
---|---|
static MessageSerializer |
DEFAULT_REQUEST_SERIALIZER
Default serializer for requests received by Gremlin Server.
|
static MessageSerializer |
DEFAULT_RESULT_SERIALIZER
Default serializer for results returned from Gremlin Server.
|
Modifier and Type | Method and Description |
---|---|
String |
getValue() |
MessageSerializer |
simpleInstance() |
static Serializers |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Serializers[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Serializers GRAPHSON
public static final Serializers GRAPHSON_V1D0
public static final Serializers GRAPHSON_V2D0
public static final Serializers GRYO_V1D0
public static final Serializers GRYO_LITE_V1D0
public static final MessageSerializer DEFAULT_RESULT_SERIALIZER
MessageTextSerializer
so that it can be compatible with text-based
websocket messages.public static final MessageSerializer DEFAULT_REQUEST_SERIALIZER
MessageTextSerializer
so that it can be compatible with text-based
websocket messages.public static Serializers[] values()
for (Serializers c : Serializers.values()) System.out.println(c);
public static Serializers 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 getValue()
public MessageSerializer simpleInstance()
Copyright © 2013–2018 Apache Software Foundation. All rights reserved.