public class Metadata extends Object
| Modifier and Type | Field and Description |
|---|---|
static short |
VERSION |
| Constructor and Description |
|---|
Metadata() |
| Modifier and Type | Method and Description |
|---|---|
static ByteBuf |
encode(ByteBufAllocator allocator,
String service,
String method,
ByteBuf metadata) |
static ByteBuf |
encode(ByteBufAllocator allocator,
String service,
String method,
ByteBuf tracing,
ByteBuf metadata) |
static ByteBuf |
getMetadata(ByteBuf byteBuf) |
static String |
getMethod(ByteBuf byteBuf) |
static String |
getService(ByteBuf byteBuf) |
static ByteBuf |
getTracing(ByteBuf byteBuf) |
static int |
getVersion(ByteBuf byteBuf) |
public static final short VERSION
public static ByteBuf encode(ByteBufAllocator allocator, String service, String method, ByteBuf metadata)
public static ByteBuf encode(ByteBufAllocator allocator, String service, String method, ByteBuf tracing, ByteBuf metadata)
public static int getVersion(ByteBuf byteBuf)