io.tarantool.driver.protocol.EmptyTarantoolResponseBody 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 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");
}
}