| Modifier and Type | Field and Description |
|---|---|
static MessageCodec<Boolean,Boolean> |
BOOLEAN_MESSAGE_CODEC |
static MessageCodec<Buffer,Buffer> |
BUFFER_MESSAGE_CODEC |
static MessageCodec<byte[],byte[]> |
BYTE_ARRAY_MESSAGE_CODEC |
static MessageCodec<Byte,Byte> |
BYTE_MESSAGE_CODEC |
static MessageCodec<Character,Character> |
CHAR_MESSAGE_CODEC |
static MessageCodec<Double,Double> |
DOUBLE_MESSAGE_CODEC |
static MessageCodec<Float,Float> |
FLOAT_MESSAGE_CODEC |
static MessageCodec<Integer,Integer> |
INT_MESSAGE_CODEC |
static MessageCodec<JsonArray,JsonArray> |
JSON_ARRAY_MESSAGE_CODEC |
static MessageCodec<JsonObject,JsonObject> |
JSON_OBJECT_MESSAGE_CODEC |
static MessageCodec<Long,Long> |
LONG_MESSAGE_CODEC |
static MessageCodec<String,String> |
NULL_MESSAGE_CODEC |
static MessageCodec<String,String> |
PING_MESSAGE_CODEC |
static MessageCodec<ReplyException,ReplyException> |
REPLY_EXCEPTION_MESSAGE_CODEC |
static MessageCodec<Short,Short> |
SHORT_MESSAGE_CODEC |
static MessageCodec<String,String> |
STRING_MESSAGE_CODEC |
| Constructor and Description |
|---|
CodecManager() |
| Modifier and Type | Method and Description |
|---|---|
MessageCodec |
getCodec(String codecName) |
MessageCodec |
lookupCodec(Object body,
String codecName) |
void |
registerCodec(MessageCodec codec) |
<T> void |
registerDefaultCodec(Class<T> clazz,
MessageCodec<T,?> codec) |
MessageCodec[] |
systemCodecs() |
void |
unregisterCodec(String name) |
void |
unregisterDefaultCodec(Class clazz) |
public static final MessageCodec<String,String> PING_MESSAGE_CODEC
public static final MessageCodec<String,String> NULL_MESSAGE_CODEC
public static final MessageCodec<String,String> STRING_MESSAGE_CODEC
public static final MessageCodec<Buffer,Buffer> BUFFER_MESSAGE_CODEC
public static final MessageCodec<JsonObject,JsonObject> JSON_OBJECT_MESSAGE_CODEC
public static final MessageCodec<JsonArray,JsonArray> JSON_ARRAY_MESSAGE_CODEC
public static final MessageCodec<byte[],byte[]> BYTE_ARRAY_MESSAGE_CODEC
public static final MessageCodec<Integer,Integer> INT_MESSAGE_CODEC
public static final MessageCodec<Long,Long> LONG_MESSAGE_CODEC
public static final MessageCodec<Float,Float> FLOAT_MESSAGE_CODEC
public static final MessageCodec<Double,Double> DOUBLE_MESSAGE_CODEC
public static final MessageCodec<Boolean,Boolean> BOOLEAN_MESSAGE_CODEC
public static final MessageCodec<Short,Short> SHORT_MESSAGE_CODEC
public static final MessageCodec<Character,Character> CHAR_MESSAGE_CODEC
public static final MessageCodec<Byte,Byte> BYTE_MESSAGE_CODEC
public static final MessageCodec<ReplyException,ReplyException> REPLY_EXCEPTION_MESSAGE_CODEC
public MessageCodec lookupCodec(Object body, String codecName)
public MessageCodec getCodec(String codecName)
public void registerCodec(MessageCodec codec)
public void unregisterCodec(String name)
public <T> void registerDefaultCodec(Class<T> clazz, MessageCodec<T,?> codec)
public void unregisterDefaultCodec(Class clazz)
public MessageCodec[] systemCodecs()
Copyright © 2020. All rights reserved.