public interface ICorfuPayload<T>
Modifier and Type | Interface and Description |
---|---|
static interface |
ICorfuPayload.PayloadConstructor<T> |
Modifier and Type | Field and Description |
---|---|
static ConcurrentHashMap<Class<?>,ICorfuPayload.PayloadConstructor<?>> |
constructorMap |
static MethodHandles.Lookup |
lookup
A lookup representing the context we'll use to do lookups.
|
Modifier and Type | Method and Description |
---|---|
void |
doSerialize(io.netty.buffer.ByteBuf buf) |
static <K extends Enum<K> & ITypedEnum<K>,V> |
enumMapFromBuffer(io.netty.buffer.ByteBuf buf,
Class<K> keyClass,
Class<V> objClass)
A really simple flat map implementation.
|
static <T> T |
fromBuffer(io.netty.buffer.ByteBuf buf,
Class<T> cls)
Build payload from Buffer
|
static <T> T |
fromBuffer(io.netty.buffer.ByteBuf buf,
com.google.common.reflect.TypeToken<T> token)
Build payload from Buffer.
|
static <V> List<V> |
listFromBuffer(io.netty.buffer.ByteBuf buf,
Class<V> valueClass)
A really simple flat list implementation.
|
static <K,V> Map<K,V> |
mapFromBuffer(io.netty.buffer.ByteBuf buf,
Class<K> keyClass,
Class<V> valueClass)
A really simple flat map implementation.
|
static <V extends Comparable<V>> |
rangeFromBuffer(io.netty.buffer.ByteBuf buf,
Class<V> valueClass)
A really simple flat set implementation.
|
static <V extends Comparable<V>> |
rangeSetFromBuffer(io.netty.buffer.ByteBuf buf,
Class<V> valueClass)
A really simple flat set implementation.
|
static <T> void |
serialize(io.netty.buffer.ByteBuf buffer,
T payload)
Serialize a payload into a given byte buffer.
|
static <V> Set<V> |
setFromBuffer(io.netty.buffer.ByteBuf buf,
Class<V> valueClass)
A really simple flat set implementation.
|
static final ConcurrentHashMap<Class<?>,ICorfuPayload.PayloadConstructor<?>> constructorMap
static final MethodHandles.Lookup lookup
static <T> T fromBuffer(io.netty.buffer.ByteBuf buf, Class<T> cls)
T
- The type of the payload.buf
- The buffer to deserialize.cls
- The class of the payload.static <T> T fromBuffer(io.netty.buffer.ByteBuf buf, com.google.common.reflect.TypeToken<T> token)
static <K,V> Map<K,V> mapFromBuffer(io.netty.buffer.ByteBuf buf, Class<K> keyClass, Class<V> valueClass)
K
- The type of the keys.V
- The type of the values.buf
- The buffer to deserialize.keyClass
- The class of the keys.valueClass
- The class of the values.static <V> Set<V> setFromBuffer(io.netty.buffer.ByteBuf buf, Class<V> valueClass)
V
- The type of the values.buf
- The buffer to deserialize.valueClass
- The class of the values.static <V> List<V> listFromBuffer(io.netty.buffer.ByteBuf buf, Class<V> valueClass)
V
- The type of the values.buf
- The buffer to deserialize.valueClass
- The class of the values.static <V extends Comparable<V>> com.google.common.collect.RangeSet<V> rangeSetFromBuffer(io.netty.buffer.ByteBuf buf, Class<V> valueClass)
V
- The type of the values.buf
- The buffer to deserialize.valueClass
- The class of the values.static <V extends Comparable<V>> com.google.common.collect.Range<V> rangeFromBuffer(io.netty.buffer.ByteBuf buf, Class<V> valueClass)
V
- The type of the values.buf
- The buffer to deserialize.valueClass
- The class of the values.static <K extends Enum<K> & ITypedEnum<K>,V> EnumMap<K,V> enumMapFromBuffer(io.netty.buffer.ByteBuf buf, Class<K> keyClass, Class<V> objClass)
K
- The type of the keysV
- The type of the values.buf
- The buffer to deserialize.keyClass
- The class of the keys.objClass
- The class of the values.static <T> void serialize(io.netty.buffer.ByteBuf buffer, T payload)
T
- The type of the payload.payload
- The Payload to serialize.buffer
- The buffer to serialize it into.void doSerialize(io.netty.buffer.ByteBuf buf)
Copyright © 2019 CorfuDB. All rights reserved.