Class DiscoveryClient
- java.lang.Object
-
- software.amazon.awssdk.iot.discovery.DiscoveryClient
-
- All Implemented Interfaces:
AutoCloseable
public class DiscoveryClient extends Object implements AutoCloseable
Class for performing network-based discovery of the connectivity properties of registered greengrass cores associated with an AWS account and region.
-
-
Field Summary
Fields Modifier and Type Field Description static String
TLS_EXT_ALPN
-
Constructor Summary
Constructors Constructor Description DiscoveryClient(DiscoveryClientConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
CompletableFuture<DiscoverResponse>
discover(String thingName)
Based on configuration, make an http request to query connectivity information about available Greengrass cores
-
-
-
Field Detail
-
TLS_EXT_ALPN
public static final String TLS_EXT_ALPN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DiscoveryClient
public DiscoveryClient(DiscoveryClientConfig config)
- Parameters:
config
- Greengrass discovery client configuration
-
-
Method Detail
-
discover
public CompletableFuture<DiscoverResponse> discover(String thingName)
Based on configuration, make an http request to query connectivity information about available Greengrass cores- Parameters:
thingName
- name of the thing/device making the greengrass core query- Returns:
- future holding connectivity information about greengrass cores available to the device/thing
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-