public class DefaultTargetService extends java.lang.Object implements TargetService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ORGANIZATION_ID |
static java.lang.String |
SDK_USER_KEY |
static java.lang.String |
SDK_USER_VALUE |
static java.lang.String |
SDK_VERSION_KEY |
static java.lang.String |
SESSION_ID |
| Constructor and Description |
|---|
DefaultTargetService(ClientConfig clientConfig,
TelemetryService telemetryService) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ResponseStatus |
executeNotification(TargetDeliveryRequest deliveryRequest) |
java.util.concurrent.CompletableFuture<ResponseStatus> |
executeNotificationAsync(TargetDeliveryRequest deliveryRequest) |
TargetDeliveryResponse |
executeRequest(TargetDeliveryRequest deliveryRequest) |
java.util.concurrent.CompletableFuture<TargetDeliveryResponse> |
executeRequestAsync(TargetDeliveryRequest deliveryRequest) |
public static final java.lang.String SDK_USER_KEY
public static final java.lang.String SDK_USER_VALUE
public static final java.lang.String SDK_VERSION_KEY
public static final java.lang.String SESSION_ID
public static final java.lang.String ORGANIZATION_ID
public DefaultTargetService(ClientConfig clientConfig, TelemetryService telemetryService)
public TargetDeliveryResponse executeRequest(TargetDeliveryRequest deliveryRequest)
executeRequest in interface TargetServicepublic java.util.concurrent.CompletableFuture<TargetDeliveryResponse> executeRequestAsync(TargetDeliveryRequest deliveryRequest)
executeRequestAsync in interface TargetServicepublic ResponseStatus executeNotification(TargetDeliveryRequest deliveryRequest)
executeNotification in interface TargetServicepublic java.util.concurrent.CompletableFuture<ResponseStatus> executeNotificationAsync(TargetDeliveryRequest deliveryRequest)
executeNotificationAsync in interface TargetServicepublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exception