public enum SerializerType extends Enum<SerializerType>
| Enum Constant and Description |
|---|
FST
The fst.
|
HESSIAN
The hessian.
|
KRYO
The kryo.
|
PROTOBUF
The protobuf, 'io.seata:seata-serializer-protobuf' dependency must be referenced manually.
|
SEATA
The seata.
|
| Modifier and Type | Method and Description |
|---|---|
static SerializerType |
getByCode(int code)
Gets result code.
|
static SerializerType |
getByName(String name)
Gets result code.
|
byte |
getCode()
Gets code.
|
static SerializerType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SerializerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SerializerType SEATA
Math.pow(2, 0)
public static final SerializerType PROTOBUF
Math.pow(2, 1)
public static final SerializerType KRYO
Math.pow(2, 2)
public static final SerializerType FST
Math.pow(2, 3)
public static final SerializerType HESSIAN
Math.pow(2, 4)
public static SerializerType[] values()
for (SerializerType c : SerializerType.values()) System.out.println(c);
public static SerializerType 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 static SerializerType getByCode(int code)
code - the codepublic static SerializerType getByName(String name)
name - the namepublic byte getCode()
Copyright © 2023 Seata. All rights reserved.