public class DiscoveryClientConfig extends Object implements AutoCloseable
| Constructor and Description |
|---|
DiscoveryClientConfig(software.amazon.awssdk.crt.io.ClientBootstrap bootstrap,
software.amazon.awssdk.crt.io.TlsContextOptions tlsContextOptions,
software.amazon.awssdk.crt.io.SocketOptions socketOptions,
int maxConnections,
software.amazon.awssdk.crt.http.HttpProxyOptions proxyOptions,
String ggServerName)
Default Constructor for DiscoveryClientConfig that allows the specification of a specific ggServerName to use in special regions
|
DiscoveryClientConfig(software.amazon.awssdk.crt.io.ClientBootstrap bootstrap,
software.amazon.awssdk.crt.io.TlsContextOptions tlsContextOptions,
software.amazon.awssdk.crt.io.SocketOptions socketOptions,
String region,
int maxConnections,
software.amazon.awssdk.crt.http.HttpProxyOptions proxyOptions)
Constructor for DiscoveryClientConfig creates the correct endpoint if not in a special region
|
DiscoveryClientConfig(software.amazon.awssdk.crt.io.TlsContextOptions tlsContextOptions,
software.amazon.awssdk.crt.io.SocketOptions socketOptions,
int maxConnections,
software.amazon.awssdk.crt.http.HttpProxyOptions proxyOptions,
String ggServerName)
Default Constructor for DiscoveryClientConfig that allows the specification of a specific ggServerName to use in special regions
using the static default client bootstrap.
|
DiscoveryClientConfig(software.amazon.awssdk.crt.io.TlsContextOptions tlsContextOptions,
software.amazon.awssdk.crt.io.SocketOptions socketOptions,
String region,
int maxConnections,
software.amazon.awssdk.crt.http.HttpProxyOptions proxyOptions)
Constructor for DiscoveryClientConfig creates the correct endpoint if not in a special region using
the default static bootstrap.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
software.amazon.awssdk.crt.io.ClientBootstrap |
getBootstrap() |
String |
getGGServerName() |
int |
getMaxConnections() |
software.amazon.awssdk.crt.http.HttpProxyOptions |
getProxyOptions() |
String |
getRegion() |
software.amazon.awssdk.crt.io.SocketOptions |
getSocketOptions() |
software.amazon.awssdk.crt.io.TlsContext |
getTlsContext() |
public DiscoveryClientConfig(software.amazon.awssdk.crt.io.ClientBootstrap bootstrap,
software.amazon.awssdk.crt.io.TlsContextOptions tlsContextOptions,
software.amazon.awssdk.crt.io.SocketOptions socketOptions,
String region,
int maxConnections,
software.amazon.awssdk.crt.http.HttpProxyOptions proxyOptions)
bootstrap - client bootstrap to use to establish network connectionstlsContextOptions - tls configuration for client network connections. For greengrass discovery, the
tls context must be initialized with the certificate and private key of the
device/thing that is querying greengrass core availability.socketOptions - socket configuration for client network connectionsregion - AWS region to query for greengrass informationmaxConnections - maximum concurrent http connections within the clientproxyOptions - proxy configuration for client network connectionspublic DiscoveryClientConfig(software.amazon.awssdk.crt.io.TlsContextOptions tlsContextOptions,
software.amazon.awssdk.crt.io.SocketOptions socketOptions,
String region,
int maxConnections,
software.amazon.awssdk.crt.http.HttpProxyOptions proxyOptions)
tlsContextOptions - tls configuration for client network connections. For greengrass discovery, the
tls context must be initialized with the certificate and private key of the
device/thing that is querying greengrass core availability.socketOptions - socket configuration for client network connectionsregion - AWS region to query for greengrass informationmaxConnections - maximum concurrent http connections within the clientproxyOptions - proxy configuration for client network connectionspublic DiscoveryClientConfig(software.amazon.awssdk.crt.io.ClientBootstrap bootstrap,
software.amazon.awssdk.crt.io.TlsContextOptions tlsContextOptions,
software.amazon.awssdk.crt.io.SocketOptions socketOptions,
int maxConnections,
software.amazon.awssdk.crt.http.HttpProxyOptions proxyOptions,
String ggServerName)
bootstrap - client bootstrap to use to establish network connectionstlsContextOptions - tls configuration for client network connections. For greengrass discovery, the
tls context must be initialized with the certificate and private key of the
device/thing that is querying greengrass core availability.socketOptions - socket configuration for client network connectionsmaxConnections - maximum concurrent http connections within the clientproxyOptions - proxy configuration for client network connectionsggServerName - full endpoint to use when connecting in special regionspublic DiscoveryClientConfig(software.amazon.awssdk.crt.io.TlsContextOptions tlsContextOptions,
software.amazon.awssdk.crt.io.SocketOptions socketOptions,
int maxConnections,
software.amazon.awssdk.crt.http.HttpProxyOptions proxyOptions,
String ggServerName)
tlsContextOptions - tls configuration for client network connections. For greengrass discovery, the
tls context must be initialized with the certificate and private key of the
device/thing that is querying greengrass core availability.socketOptions - socket configuration for client network connectionsmaxConnections - maximum concurrent http connections within the clientproxyOptions - proxy configuration for client network connectionsggServerName - full endpoint to use when connecting in special regionspublic software.amazon.awssdk.crt.io.ClientBootstrap getBootstrap()
public software.amazon.awssdk.crt.io.TlsContext getTlsContext()
public software.amazon.awssdk.crt.io.SocketOptions getSocketOptions()
public String getRegion()
public int getMaxConnections()
public software.amazon.awssdk.crt.http.HttpProxyOptions getProxyOptions()
public String getGGServerName()
public void close()
close in interface AutoCloseableCopyright ? 2021. All rights reserved.