Package dev.sigstore.http
Class GrpcChannels
- java.lang.Object
-
- dev.sigstore.http.GrpcChannels
-
public class GrpcChannels extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description GrpcChannels()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.grpc.ManagedChannelnewManagedChannel(java.lang.String serverUrl, HttpParams httpParams)Create a new managed channel, this may be reused across multiple requests to a host, and must be closed when finished.static io.grpc.ManagedChannelnewManagedChannel(java.net.URI serverUrl, HttpParams httpParams)Create a new managed channel, this may be reused across multiple requests to a host, and must be closed when finished.
-
-
-
Method Detail
-
newManagedChannel
public static io.grpc.ManagedChannel newManagedChannel(java.net.URI serverUrl, HttpParams httpParams)Create a new managed channel, this may be reused across multiple requests to a host, and must be closed when finished.- Parameters:
serverUrl- the host to connect tohttpParams- the http configuration- Returns:
- a reusable grpc channel
-
newManagedChannel
public static io.grpc.ManagedChannel newManagedChannel(java.lang.String serverUrl, HttpParams httpParams)Create a new managed channel, this may be reused across multiple requests to a host, and must be closed when finished.- Parameters:
serverUrl- the host to connect tohttpParams- the http configuration- Returns:
- a reusable grpc channel
-
-