tech.ydb.core.grpc.GrpcReadWriteStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ydb-sdk-core Show documentation
Show all versions of ydb-sdk-core Show documentation
Core module of Java SDK for YDB
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();
}