forked from TrueCloudLab/frostfs-sdk-java
[#32] Provide a pool of clients to grpc
Signed-off-by: Ori Bruk <o.bruk@yadro.com>
This commit is contained in:
parent
3c3ed76727
commit
e9e9480701
56 changed files with 1712 additions and 59 deletions
|
@ -2,8 +2,8 @@ package info.frostfs.sdk.jdo;
|
|||
|
||||
import info.frostfs.sdk.annotations.AtLeastOneIsFilled;
|
||||
import info.frostfs.sdk.annotations.NotNull;
|
||||
import io.grpc.Channel;
|
||||
import io.grpc.ChannelCredentials;
|
||||
import io.grpc.ManagedChannel;
|
||||
import lombok.Getter;
|
||||
import lombok.experimental.FieldNameConstants;
|
||||
|
||||
|
@ -17,7 +17,7 @@ public class ClientSettings {
|
|||
|
||||
private String host;
|
||||
private ChannelCredentials credentials;
|
||||
private Channel channel;
|
||||
private ManagedChannel channel;
|
||||
|
||||
public ClientSettings(String key, String host) {
|
||||
this.key = key;
|
||||
|
@ -30,7 +30,7 @@ public class ClientSettings {
|
|||
this.credentials = credentials;
|
||||
}
|
||||
|
||||
public ClientSettings(String key, Channel channel) {
|
||||
public ClientSettings(String key, ManagedChannel channel) {
|
||||
this.key = key;
|
||||
this.channel = channel;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue