-
Notifications
You must be signed in to change notification settings - Fork 14
Add DurableTaskGrpcClientFactory
#256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 7 commits
af16d08
9ef0448
82a3bda
ef2048b
fc9cfcf
ae5d802
39374b0
e34a7f9
29055a2
96e02b7
8377269
b30d6ca
1dc95d5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| package com.microsoft.durabletask; | ||
|
|
||
| import java.util.concurrent.ConcurrentHashMap; | ||
| import java.util.concurrent.ConcurrentMap; | ||
|
|
||
| public final class DurableTaskGrpcClientFactory { | ||
| private static final ConcurrentMap<Integer, DurableTaskGrpcClient> portToClientMap = new ConcurrentHashMap<>(); | ||
|
|
||
| public static DurableTaskClient getClient(int port, String defaultVersion) { | ||
| return portToClientMap.computeIfAbsent(port, DurableTaskGrpcClient::new); | ||
| } | ||
| } | ||
|
sophiatev marked this conversation as resolved.
Comment on lines
+9
to
+19
|
||
Uh oh!
There was an error while loading. Please reload this page.