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

com.clickzetta.platform.client.RequestStreamObserver Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package com.clickzetta.platform.client;

import io.grpc.ManagedChannel;
import io.grpc.stub.StreamObserver;

public interface RequestStreamObserver {

  /**
   * streamObserver get & set interface.
   */
  void replaceWithNew(RequestStreamObserver newStreamObserver);

  StreamObserver getRequestStreamObserver();

  ResponseProxyStreamObserver getResponseProxyStreamObserver();

  /**
   * stream observer interface.
   */
  int refCnt();

  RequestStreamObserver retain();

  ManagedChannel getChannel();

  void onNext(V var1);

  void onError(Throwable var1);

  default void onCompleted() {
    long wait_time_ms = 5 * 1000;
    onCompleted(wait_time_ms);
  }

  void onCompleted(long wait_time_ms);

  default void onCancel() {
    long wait_time_ms = 5 * 1000;
    onCancel(wait_time_ms);
  }

  void onCancel(long wait_time_ms);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy