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

io.tarantool.driver.core.proxy.CRUDBaseOptions 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.core.proxy;

import java.util.Optional;

/**
 * This class is not part of the public API.
 * 

* Represent basic options for all cluster operations * * @author Alexey Kuzin * @author Artyom Dubinin */ class CRUDBaseOptions extends CRUDAbstractOperationOptions { public static final String TIMEOUT = "timeout"; protected > CRUDBaseOptions(AbstractBuilder builder) { addOption(TIMEOUT, builder.timeout); } /** * Inheritable Builder for basic cluster proxy operation options. * * @see CRUDAbstractOperationOptions.AbstractBuilder */ protected abstract static class AbstractBuilder> extends CRUDAbstractOperationOptions.AbstractBuilder { protected Optional timeout = Optional.empty(); public B withTimeout(Optional timeout) { this.timeout = timeout; return self(); } } /** * Concrete Builder implementation for basic cluster proxy operation options. */ protected static final class Builder extends AbstractBuilder { @Override Builder self() { return this; } @Override public CRUDBaseOptions build() { return new CRUDBaseOptions(this); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy