All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.tarantool.driver.protocol.Packable Maven / Gradle / Ivy

Go to download

Tarantool Cartridge driver for Tarantool versions 1.10+ based on Netty framework

There is a newer version: 0.14.0
Show newest version
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