/** {@inheritDoc} */
@Override
public Tuple deleteAndGet(int space, Tuple tuple) {
try {
Response response = transport.execute(new Delete(id.incrementAndGet(), tuple.pack()).space(space).flags(Flags.RETURN_TUPLE));
return response.readSingleTuple();
} finally {
returnConnection();
}
}