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

tech.ydb.core.grpc.GrpcReadWriteStream Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
package tech.ydb.core.grpc;


/**
 *
 * @author Aleksandr Gorshenin
 * @param  type of message received
 * @param  type of message to be sent to the server
 */
public interface GrpcReadWriteStream extends GrpcReadStream {
    String authToken();

    /**
     * Send a request message to the server.
     * @param message message to be sent to the server.
     */
    void sendNext(W message);

    /**
     * Close the call for next message sending. Incoming response messages are unaffected. This
     * should be called when no more messages will be sent from the client.
     */
    void close();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy