public class CdsProfileFetcher extends java.lang.Object implements AppProfileFetcher, ApplicationIdResolver
| Modifier and Type | Class and Description |
|---|---|
static class |
CdsProfileFetcher.CdsRetryPolicy
Responsible for CDS Retry Policy configuration.
|
| Constructor and Description |
|---|
CdsProfileFetcher() |
CdsProfileFetcher(CdsProfileFetcher.CdsRetryPolicy retryPolicy) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ProfileFetcherResult |
fetchApplicationId(java.lang.String instrumentationKey,
com.microsoft.applicationinsights.TelemetryConfiguration configuration) |
ProfileFetcherResult |
fetchAppProfile(java.lang.String instrumentationKey)
Deprecated.
Use
fetchApplicationId(String, TelemetryConfiguration). This still works for now by calling fetchApplicationId(instrumentationKey, TelemetryConfiguration.getActive() |
void |
setEndpointAddress(java.lang.String endpoint)
Deprecated.
Set endpoints using
TelemetryConfiguration.setConnectionString(String). |
public CdsProfileFetcher()
public CdsProfileFetcher(CdsProfileFetcher.CdsRetryPolicy retryPolicy)
@Deprecated public ProfileFetcherResult fetchAppProfile(java.lang.String instrumentationKey) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.io.IOException
fetchApplicationId(String, TelemetryConfiguration). This still works for now by calling fetchApplicationId(instrumentationKey, TelemetryConfiguration.getActive()AppProfileFetcherfetchAppProfile in interface AppProfileFetcherinstrumentationKey - The instrumentation key for which to fetch the appId.java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.io.IOExceptionpublic ProfileFetcherResult fetchApplicationId(java.lang.String instrumentationKey, com.microsoft.applicationinsights.TelemetryConfiguration configuration) throws ApplicationIdResolutionException, java.lang.InterruptedException
fetchApplicationId in interface ApplicationIdResolverApplicationIdResolutionExceptionjava.lang.InterruptedException@Deprecated
public void setEndpointAddress(java.lang.String endpoint)
throws java.net.MalformedURLException
TelemetryConfiguration.setConnectionString(String).java.net.MalformedURLExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException