Class CommunicationRelayClient
- java.lang.Object
-
- com.azure.communication.networktraversal.CommunicationRelayClient
-
public final class CommunicationRelayClient extends Object
Synchronous client interface for Communication Service Networktraversal operations
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommunicationRelayConfiguration
getRelayConfiguration()
Gets a Relay Configuration.CommunicationRelayConfiguration
getRelayConfiguration(com.azure.communication.common.CommunicationUserIdentifier communicationUser)
Gets a Relay Configuration for a CommunicationUserIdentifier.CommunicationRelayConfiguration
getRelayConfiguration(com.azure.communication.common.CommunicationUserIdentifier communicationUser, RouteType routeType)
Gets a Relay Configuration for a CommunicationUserIdentifier given a RouteType.CommunicationRelayConfiguration
getRelayConfiguration(RouteType routeType)
Gets a Relay Configuration given a RouteType.com.azure.core.http.rest.Response<CommunicationRelayConfiguration>
getRelayConfigurationWithResponse(com.azure.communication.common.CommunicationUserIdentifier communicationUser, RouteType routeType, com.azure.core.util.Context context)
Gets a Relay Configuration with response.
-
-
-
Method Detail
-
getRelayConfiguration
public CommunicationRelayConfiguration getRelayConfiguration()
Gets a Relay Configuration.- Returns:
- The obtained Communication Relay Configuration
-
getRelayConfiguration
public CommunicationRelayConfiguration getRelayConfiguration(com.azure.communication.common.CommunicationUserIdentifier communicationUser)
Gets a Relay Configuration for a CommunicationUserIdentifier.- Parameters:
communicationUser
- The CommunicationUserIdentifier for whom to issue a token- Returns:
- The obtained Communication Relay Configuration
-
getRelayConfiguration
public CommunicationRelayConfiguration getRelayConfiguration(RouteType routeType)
Gets a Relay Configuration given a RouteType.- Parameters:
routeType
- The specified RouteType for the relay request- Returns:
- The obtained Communication Relay Configuration
-
getRelayConfiguration
public CommunicationRelayConfiguration getRelayConfiguration(com.azure.communication.common.CommunicationUserIdentifier communicationUser, RouteType routeType)
Gets a Relay Configuration for a CommunicationUserIdentifier given a RouteType.- Parameters:
communicationUser
- The CommunicationUserIdentifier for whom to issue a tokenrouteType
- The specified RouteType for the relay request- Returns:
- The obtained Communication Relay Configuration
-
getRelayConfigurationWithResponse
public com.azure.core.http.rest.Response<CommunicationRelayConfiguration> getRelayConfigurationWithResponse(com.azure.communication.common.CommunicationUserIdentifier communicationUser, RouteType routeType, com.azure.core.util.Context context)
Gets a Relay Configuration with response.- Parameters:
communicationUser
- The CommunicationUserIdentifier for whom to issue a tokenrouteType
- The specified RouteType for the relay requestcontext
- AContext
representing the request context.- Returns:
- The obtained Communication Relay Configuration
-
-