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

com.exactpro.th2.act.grpc.hand.RhBatchDefaultBlockingImpl 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 java.lang.Override;
import java.lang.String;
import java.util.Map;

public class RhBatchDefaultBlockingImpl extends AbstractGrpcService implements RhBatchService {
  public RhBatchDefaultBlockingImpl() {
    super();
  }

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

  public RhSessionID register(RhTargetServer input, Map properties) {
    com.exactpro.th2.act.grpc.hand.RhBatchGrpc.RhBatchBlockingStub stub = getStub(input, properties);
    return createBlockingRequest(() -> stub.register(input));
  }

  public RhSessionID register(RhTargetServer input) {
    return register(input, java.util.Collections.EMPTY_MAP);
  }

  public Empty unregister(RhSessionID input, Map properties) {
    com.exactpro.th2.act.grpc.hand.RhBatchGrpc.RhBatchBlockingStub stub = getStub(input, properties);
    return createBlockingRequest(() -> stub.unregister(input));
  }

  public Empty unregister(RhSessionID input) {
    return unregister(input, java.util.Collections.EMPTY_MAP);
  }

  public RhBatchResponse executeRhActionsBatch(RhActionsBatch input,
      Map properties) {
    com.exactpro.th2.act.grpc.hand.RhBatchGrpc.RhBatchBlockingStub stub = getStub(input, properties);
    return createBlockingRequest(() -> stub.executeRhActionsBatch(input));
  }

  public RhBatchResponse executeRhActionsBatch(RhActionsBatch input) {
    return executeRhActionsBatch(input, java.util.Collections.EMPTY_MAP);
  }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy