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

io.tarantool.driver.protocol.EmptyTarantoolResponseBody 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 org.msgpack.value.Value;

/**
 * Represents empty body from a map no entries. It is expected as a response for several special requests
 *
 * @author Alexey Kuzin
 */
public class EmptyTarantoolResponseBody implements TarantoolResponseBody {
    private final TarantoolResponseBodyType responseBodyType;

    /**
     * Basic constructor.
     */
    public EmptyTarantoolResponseBody() {
        this.responseBodyType = TarantoolResponseBodyType.EMPTY;
    }

    @Override
    public TarantoolResponseBodyType getResponseBodyType() {
        return responseBodyType;
    }

    @Override
    public Value getData() {
        throw new UnsupportedOperationException("Response body is empty");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy