Class CommunicationRelayClient

java.lang.Object
com.azure.communication.networktraversal.CommunicationRelayClient

public final class CommunicationRelayClient extends Object
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 Details

    • getRelayConfiguration

      public CommunicationRelayConfiguration getRelayConfiguration()
      Gets a Relay Configuration.
      Returns:
      The obtained Communication Relay Configuration
    • getRelayConfiguration

      public CommunicationRelayConfiguration getRelayConfiguration(GetRelayConfigurationOptions options)
      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 request
      context - A Context representing the request context.
      Returns:
      The obtained Communication Relay Configuration