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

com.yandex.ydb.core.rpc.Rpc Maven / Gradle / Ivy

The newest version!
package com.yandex.ydb.core.rpc;

import javax.annotation.Nullable;

/**
 * @author Sergey Polovko
 */
public interface Rpc extends AutoCloseable {

    String getDatabase();

    /**
     * Returns endpoint (host:port) for corresponding node id.
     * Returns null if there is no such node id.
     * @param nodeId number identity of the node
     * @return endpoint associated with the node
     */
    @Nullable
    String getEndpointByNodeId(int nodeId);

    OperationTray getOperationTray();

    @Override
    void close();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy