io.tarantool.driver.protocol.Packable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cartridge-driver Show documentation
Show all versions of cartridge-driver Show documentation
Tarantool Cartridge driver for Tarantool versions 1.10+ based on Netty framework
package io.tarantool.driver.protocol;
import io.tarantool.driver.mappers.MessagePackObjectMapper;
import org.msgpack.value.Value;
import java.io.Serializable;
/**
* Classes implementing this interface can be converted into MessagePack representation
*
* @author Alexey Kuzin
*/
public interface Packable extends Serializable {
/**
* Convert this instance into a corresponding MessagePack {@link Value}
*
* @param mapper configured Java objects to entities mapper
* @return MessagePack entity
*/
Value toMessagePackValue(MessagePackObjectMapper mapper);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy