Class CommunicationRelayClient
java.lang.Object
com.azure.communication.networktraversal.CommunicationRelayClient
Synchronous client interface for Communication Service NetworkTraversal operations
Instantiating a synchronous CommunicationRelayClient
// You can find your endpoint and access key from your resource in the Azure Portal String endpoint = "https://<RESOURCE_NAME>.communication.azure.com"; AzureKeyCredential keyCredential = new AzureKeyCredential("<access-key>"); CommunicationRelayClient communicationRelayClient = new CommunicationRelayClientBuilder() .endpoint(endpoint) .credential(keyCredential) .buildClient();
View this
for additional ways to construct the client.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets a Relay Configuration.Gets a Relay Configuration for a CommunicationUserIdentifier.getRelayConfigurationWithResponse
(GetRelayConfigurationOptions options, Context context) Gets a Relay Configuration with response.
-
Method Details
-
getRelayConfiguration
Gets a Relay Configuration.- Returns:
- The obtained Communication Relay Configuration
-
getRelayConfiguration
Gets a Relay Configuration for a CommunicationUserIdentifier.- Parameters:
options
- of the GetRelayConfigurationOptions request- Returns:
- The obtained Communication Relay Configuration
-
getRelayConfigurationWithResponse
public Response<CommunicationRelayConfiguration> getRelayConfigurationWithResponse(GetRelayConfigurationOptions options, Context context) Gets a Relay Configuration with response.- Parameters:
options
- of the GetRelayConfigurationOptions requestcontext
- AContext
representing the request context.- Returns:
- The obtained Communication Relay Configuration
-