public class TxResolutionInfo extends Object implements ICorfuPayload<TxResolutionInfo>
ICorfuPayload.PayloadConstructor<T>
constructorMap, lookup
Constructor and Description |
---|
TxResolutionInfo(io.netty.buffer.ByteBuf buf)
fast, specialized deserialization constructor, from a ByteBuf to this object
|
TxResolutionInfo(UUID txId,
Token snapshotTimestamp)
Constructor for TxResolutionInfo.
|
TxResolutionInfo(UUID txId,
Token snapshotTimestamp,
Map<UUID,Set<byte[]>> conflictMap,
Map<UUID,Set<byte[]>> writeConflictParams)
Constructor for TxResolutionInfo.
|
Modifier and Type | Method and Description |
---|---|
void |
doSerialize(io.netty.buffer.ByteBuf buf)
fast , specialized serialization of object into ByteBuf.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
enumMapFromBuffer, fromBuffer, fromBuffer, listFromBuffer, mapFromBuffer, rangeFromBuffer, rangeSetFromBuffer, serialize, setFromBuffer
public TxResolutionInfo(UUID txId, Token snapshotTimestamp)
txId
- transaction identifiersnapshotTimestamp
- transaction snapshot timestamppublic TxResolutionInfo(UUID txId, Token snapshotTimestamp, Map<UUID,Set<byte[]>> conflictMap, Map<UUID,Set<byte[]>> writeConflictParams)
txId
- transaction identifiersnapshotTimestamp
- transaction snapshot timestampconflictMap
- map of conflict parameters, arranged by stream IDswriteConflictParams
- map of write conflict parameters, arranged by stream IDspublic TxResolutionInfo(io.netty.buffer.ByteBuf buf)
The first entry is a long, the snapshot timestamp. The second is an int, the size of the map. Next, entries are serialized one by one, first the key, then each value, itself a set of objects.
buf
- The buffer to deserialize.public void doSerialize(io.netty.buffer.ByteBuf buf)
doSerialize
in interface ICorfuPayload<TxResolutionInfo>
buf
- The buffer to serialize object intoCopyright © 2019 CorfuDB. All rights reserved.