public class CdsProfileFetcher extends java.lang.Object implements AppProfileFetcher
| 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 |
fetchAppProfile(java.lang.String instrumentationKey)
Fetches the application profile and returns the appId corresponding to the
instrumentation key provided.
|
void |
setEndpointAddress(java.lang.String endpoint) |
public CdsProfileFetcher()
public CdsProfileFetcher(CdsProfileFetcher.CdsRetryPolicy retryPolicy)
public ProfileFetcherResult fetchAppProfile(java.lang.String instrumentationKey) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, org.apache.http.ParseException, java.io.IOException
AppProfileFetcherfetchAppProfile in interface AppProfileFetcherinstrumentationKey - The instrumentation key for which to fetch the appId.java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionorg.apache.http.ParseExceptionjava.io.IOExceptionpublic void setEndpointAddress(java.lang.String endpoint)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException