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

com.gitee.jmash.file.client.cdi.FileClient Maven / Gradle / Ivy

There is a newer version: 0.0.3
Show newest version

package com.gitee.jmash.file.client.cdi;

import com.gitee.jmash.common.grpc.client.GrpcChannel;
import jakarta.enterprise.inject.spi.CDI;
import jmash.basic.FileBasicGrpc;
import jmash.file.FileGrpc;

/** File Client . */
public class FileClient {

  public static FileGrpc.FileBlockingStub getFileBlockingStub() {
    return CDI.current().select(FileGrpc.FileBlockingStub.class).get()
        .withCallCredentials(GrpcChannel.getCallCredentials());
  }

  public static FileGrpc.FileFutureStub getFileFutureStub() {
    return CDI.current().select(FileGrpc.FileFutureStub.class).get()
        .withCallCredentials(GrpcChannel.getCallCredentials());
  }

  public static FileGrpc.FileStub getFileStub() {
    return CDI.current().select(FileGrpc.FileStub.class).get()
        .withCallCredentials(GrpcChannel.getCallCredentials());
  }

  public static FileBasicGrpc.FileBasicBlockingStub getFileBasicBlockingStub() {
    return CDI.current().select(FileBasicGrpc.FileBasicBlockingStub.class).get()
        .withCallCredentials(GrpcChannel.getCallCredentials());
  }

  public static FileBasicGrpc.FileBasicFutureStub getFileBasicFutureStub() {
    return CDI.current().select(FileBasicGrpc.FileBasicFutureStub.class).get()
        .withCallCredentials(GrpcChannel.getCallCredentials());
  }

  public static FileBasicGrpc.FileBasicStub getFileBasicStub() {
    return CDI.current().select(FileBasicGrpc.FileBasicStub.class).get()
        .withCallCredentials(GrpcChannel.getCallCredentials());
  }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy