public class TargetingClient
extends java.lang.Object
Constructor and Description |
---|
TargetingClient(com.amazonaws.mobileconnectors.pinpoint.internal.core.PinpointContext context)
Initializes a client to manage updating the endpoint profile
|
TargetingClient(com.amazonaws.mobileconnectors.pinpoint.internal.core.PinpointContext context,
java.util.concurrent.ExecutorService executor)
Initializes a targetingClient used for testing only
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(java.lang.String attributeName,
java.util.List<java.lang.String> attributeValues)
Adds the specified attribute to the current endpoint profile generated by this client.
|
void |
addMetric(java.lang.String metricName,
java.lang.Double metricValue)
Adds the specified metric to the current endpoint profile generated by this client.
|
EndpointProfile |
currentEndpoint()
Returns the device endpoint profile.
|
void |
removeAttribute(java.lang.String attributeName)
Removes the specified attribute.
|
void |
removeMetric(java.lang.String metricName)
Removes the specified metric from the current endpoint profile generated by this client.
|
void |
updateEndpointProfile()
Register the current endpoint with the Pinpoint service.
|
void |
updateEndpointProfile(EndpointProfile endpointProfile)
Register the provided endpoint with the Pinpoint service.
|
public TargetingClient(com.amazonaws.mobileconnectors.pinpoint.internal.core.PinpointContext context, java.util.concurrent.ExecutorService executor)
context
- The PinpointContext
executor
- A thread pool executorpublic TargetingClient(com.amazonaws.mobileconnectors.pinpoint.internal.core.PinpointContext context)
context
- The PinpointContext
public EndpointProfile currentEndpoint()
public void updateEndpointProfile()
public void updateEndpointProfile(EndpointProfile endpointProfile)
endpointProfile
- An instance of an EndpointProfile to be updatedpublic void addAttribute(java.lang.String attributeName, java.util.List<java.lang.String> attributeValues)
attributeName
- the name of the attribute to addattributeValues
- the value of the attributepublic void removeAttribute(java.lang.String attributeName)
attributeName
- the name of the attribute to removepublic void addMetric(java.lang.String metricName, java.lang.Double metricValue)
metricName
- the name of the metric to addmetricValue
- the value of the metricpublic void removeMetric(java.lang.String metricName)
metricName
- the name of the metric to removeCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.