in plugin-tester-java/src/main/java/example/myapp/helloworld/LiftedGreeterClient.java [34:56]
public static void main(String[] args) throws Exception {
ActorSystem system = ActorSystem.create("HelloWorldClient");
Materializer materializer = SystemMaterializer.get(system).materializer();
GrpcClientSettings settings = GrpcClientSettings.fromConfig(GreeterService.name, system);
GreeterServiceClient client = null;
try {
client = GreeterServiceClient.create(settings, system);
singleRequestReply(client);
streamingRequest(client);
streamingReply(client, materializer);
streamingRequestReply(client, materializer);
} catch (StatusRuntimeException e) {
System.out.println("Status: " + e.getStatus());
} catch (Exception e) {
System.out.println(e);
} finally {
if (client != null) client.close();
system.terminate();
}
}