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

com.exactpro.th2.act.grpc.hand.RhBatchDefaultAsyncImpl Maven / Gradle / Ivy

There is a newer version: 3.0.0-dev
Show newest version
package com.exactpro.th2.act.grpc.hand;

import com.exactpro.th2.service.AbstractGrpcService;
import com.exactpro.th2.service.RetryPolicy;
import com.exactpro.th2.service.StubStorage;
import com.google.protobuf.Empty;
import io.grpc.CallOptions;
import io.grpc.Channel;
import io.grpc.stub.StreamObserver;
import java.lang.Override;
import java.lang.String;
import java.util.Map;

public class RhBatchDefaultAsyncImpl extends AbstractGrpcService implements AsyncRhBatchService {
  public RhBatchDefaultAsyncImpl() {
    super();
  }

  public RhBatchDefaultAsyncImpl(RetryPolicy retryConfiguration,
      StubStorage serviceConfiguration) {
    super(retryConfiguration, serviceConfiguration);
  }

  public void register(RhTargetServer input, Map properties,
      StreamObserver observer) {
    com.exactpro.th2.act.grpc.hand.RhBatchGrpc.RhBatchStub stub = getStub(input, properties);
    createAsyncRequest(observer, (newObserver) -> stub.register(input, newObserver));
  }

  public void register(RhTargetServer input, StreamObserver observer) {
    register(input, java.util.Collections.EMPTY_MAP, observer);
  }

  public void unregister(RhSessionID input, Map properties,
      StreamObserver observer) {
    com.exactpro.th2.act.grpc.hand.RhBatchGrpc.RhBatchStub stub = getStub(input, properties);
    createAsyncRequest(observer, (newObserver) -> stub.unregister(input, newObserver));
  }

  public void unregister(RhSessionID input, StreamObserver observer) {
    unregister(input, java.util.Collections.EMPTY_MAP, observer);
  }

  public void executeRhActionsBatch(RhActionsBatch input, Map properties,
      StreamObserver observer) {
    com.exactpro.th2.act.grpc.hand.RhBatchGrpc.RhBatchStub stub = getStub(input, properties);
    createAsyncRequest(observer, (newObserver) -> stub.executeRhActionsBatch(input, newObserver));
  }

  public void executeRhActionsBatch(RhActionsBatch input,
      StreamObserver observer) {
    executeRhActionsBatch(input, java.util.Collections.EMPTY_MAP, observer);
  }

  @Override
  protected RhBatchGrpc.RhBatchStub createStub(Channel channel, CallOptions callOptions) {
    return com.exactpro.th2.act.grpc.hand.RhBatchGrpc.newStub(channel);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy