Commit 64f1c35b authored by Luca Arrotta's avatar Luca Arrotta

examples updated

parent dab635af
......@@ -65,8 +65,8 @@ it/ewlab/actor/ActorOuterClass.java
it.ewlab.actor.ActorOuterClass$ActorOrBuilder
grpchelloserver/GreetingServiceImpl.java
grpchelloserver.GreetingServiceImpl
actor/Server.java
actor.Server
grpchelloserver/GreetingServiceClient.java
grpchelloserver.GreetingServiceClient
grpchelloserver.GreetingServiceClient$1
actor/Server.java
actor.Server
......@@ -33,7 +33,7 @@ public class ChatClient {
//opening a connection with chat server
final ManagedChannel channel = ManagedChannelBuilder.forTarget(IP+":"+PORT).usePlaintext(true).build();
final ManagedChannel channel = ManagedChannelBuilder.forTarget(IP+":"+PORT).usePlaintext().build();
System.out.println("[CHAT CLIENT] Connected!");
......
......@@ -34,7 +34,7 @@ public class GreetingServiceClient {
public static void synchronousCall(){
//plaintext channel on the address (ip/port) which offers the GreetingService service
final ManagedChannel channel = ManagedChannelBuilder.forTarget("localhost:8080").usePlaintext(true).build();
final ManagedChannel channel = ManagedChannelBuilder.forTarget("localhost:8080").usePlaintext().build();
//creating a blocking stub on the channel
GreetingServiceBlockingStub stub = GreetingServiceGrpc.newBlockingStub(channel);
......@@ -57,7 +57,7 @@ public class GreetingServiceClient {
public static void asynchronousStreamCall() throws InterruptedException {
//plaintext channel on the address (ip/port) which offers the GreetingService service
final ManagedChannel channel = ManagedChannelBuilder.forTarget("localhost:8080").usePlaintext(true).build();
final ManagedChannel channel = ManagedChannelBuilder.forTarget("localhost:8080").usePlaintext().build();
//creating an asynchronous stub on the channel
GreetingServiceStub stub = GreetingServiceGrpc.newStub(channel);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment