Skip to content

Commit d9cfba7

Browse files
authored
Delete DaprHTTPClient for actors. (#1056)
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
1 parent 48364b1 commit d9cfba7

File tree

7 files changed

+32
-400
lines changed

7 files changed

+32
-400
lines changed

sdk-actors/src/main/java/io/dapr/actors/runtime/ActorRuntime.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ private ActorManager getActorManager(String actorTypeName) {
315315
* @throws java.lang.IllegalStateException if any required field is missing
316316
*/
317317
private static DaprClient buildDaprClient(ManagedChannel channel) {
318-
return new DaprGrpcClient(channel);
318+
return new DaprClientImpl(channel);
319319
}
320320

321321
/**

sdk-actors/src/main/java/io/dapr/actors/runtime/DaprGrpcClient.java renamed to sdk-actors/src/main/java/io/dapr/actors/runtime/DaprClientImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
/**
3737
* A DaprClient over HTTP for Actor's runtime.
3838
*/
39-
class DaprGrpcClient implements DaprClient {
39+
class DaprClientImpl implements DaprClient {
4040

4141
/**
4242
* Use to handle internal serialization.
@@ -60,7 +60,7 @@ class DaprGrpcClient implements DaprClient {
6060
*
6161
* @param channel channel (client needs to close channel after use).
6262
*/
63-
DaprGrpcClient(ManagedChannel channel) {
63+
DaprClientImpl(ManagedChannel channel) {
6464
this(DaprGrpc.newStub(channel));
6565
}
6666

@@ -69,7 +69,7 @@ class DaprGrpcClient implements DaprClient {
6969
*
7070
* @param daprStubClient Dapr's GRPC client.
7171
*/
72-
DaprGrpcClient(DaprGrpc.DaprStub daprStubClient) {
72+
DaprClientImpl(DaprGrpc.DaprStub daprStubClient) {
7373
this.client = daprStubClient;
7474
}
7575

sdk-actors/src/main/java/io/dapr/actors/runtime/DaprHttpClient.java

Lines changed: 0 additions & 205 deletions
This file was deleted.

sdk-actors/src/test/java/io/dapr/actors/runtime/DaprGrpcClientTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public class DaprGrpcClientTest {
6868

6969
private final DaprGrpc.DaprImplBase serviceImpl = new CustomDaprClient();
7070

71-
private DaprGrpcClient client;
71+
private DaprClientImpl client;
7272

7373
@Rule
7474
public final GrpcCleanupRule grpcCleanup = new GrpcCleanupRule();
@@ -87,7 +87,7 @@ public void setup() throws IOException {
8787
InProcessChannelBuilder.forName(serverName).directExecutor().build());
8888

8989
// Create a HelloWorldClient using the in-process channel;
90-
client = new DaprGrpcClient(DaprGrpc.newStub(channel));
90+
client = new DaprClientImpl(DaprGrpc.newStub(channel));
9191
}
9292

9393
@Test

0 commit comments

Comments
 (0)