public final class TarantoolHeader extends Object implements Packable
| Modifier and Type | Method and Description |
|---|---|
static TarantoolHeader |
fromMessagePackValue(org.msgpack.value.Value value)
Creates an instance of
TarantoolHeader from MessagePack Value |
Long |
getCode() |
Long |
getLsn() |
Long |
getReplicaId() |
Long |
getSchemaVersion() |
Long |
getSync() |
Double |
getTimestamp() |
void |
setCode(Long code) |
void |
setLsn(Long lsn) |
void |
setReplicaId(Long replicaId) |
void |
setSchemaVersion(Long schemaVersion) |
void |
setSync(Long sync) |
void |
setTimestamp(Double timestamp) |
org.msgpack.value.Value |
toMessagePackValue(MessagePackObjectMapper mapper)
Converts the current header contents into a MessagePack
Value |
public void setSync(Long sync)
public Long getSync()
public void setCode(Long code)
public Long getCode()
public void setSchemaVersion(Long schemaVersion)
public Long getSchemaVersion()
public void setReplicaId(Long replicaId)
public Long getReplicaId()
public Long getLsn()
public void setLsn(Long lsn)
public Double getTimestamp()
public void setTimestamp(Double timestamp)
public org.msgpack.value.Value toMessagePackValue(MessagePackObjectMapper mapper)
ValuetoMessagePackValue in interface Packablemapper - configured Java objects to entities mapperpublic static TarantoolHeader fromMessagePackValue(org.msgpack.value.Value value) throws TarantoolProtocolException
TarantoolHeader from MessagePack Valuevalue - must be an instance of MapValueTarantoolHeader instanceTarantoolProtocolException - if the passed value is not a MapValue, mandatory fields are absent
or have wrong typeCopyright © 2025 Picodata. All rights reserved.