public interface TargetClient
extends java.lang.AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
static TargetClient |
create(ClientConfig config) |
Attributes |
getAttributes(TargetDeliveryRequest targetRequest,
java.lang.String... mboxes)
Makes a getOffers() call and converts all returned JSON offers into Attributes.
|
java.util.concurrent.CompletableFuture<Attributes> |
getAttributesAsync(TargetDeliveryRequest targetRequest,
java.lang.String... mboxes)
Makes an async getOffers() call and converts all returned JSON offers into Attributes.
|
TargetDeliveryResponse |
getOffers(TargetDeliveryRequest request) |
java.util.concurrent.CompletableFuture<TargetDeliveryResponse> |
getOffersAsync(TargetDeliveryRequest request) |
ResponseStatus |
sendNotifications(TargetDeliveryRequest request) |
java.util.concurrent.CompletableFuture<ResponseStatus> |
sendNotificationsAsync(TargetDeliveryRequest request) |
TargetDeliveryResponse getOffers(TargetDeliveryRequest request)
java.util.concurrent.CompletableFuture<TargetDeliveryResponse> getOffersAsync(TargetDeliveryRequest request)
ResponseStatus sendNotifications(TargetDeliveryRequest request)
java.util.concurrent.CompletableFuture<ResponseStatus> sendNotificationsAsync(TargetDeliveryRequest request)
Attributes getAttributes(TargetDeliveryRequest targetRequest, java.lang.String... mboxes)
targetRequest - optional TargetDeliveryRequest that can be used to set specific request
items such as Visitor, Context, etc. If null, one will be generated. Request for given mbox
will be added automatically.mboxes - Name of mboxes to use to retrieve attributes.java.util.concurrent.CompletableFuture<Attributes> getAttributesAsync(TargetDeliveryRequest targetRequest, java.lang.String... mboxes)
targetRequest - optional TargetDeliveryRequest that can be used to set specific request
items such as Visitor, Context, etc. If null, one will be generated. Request for given mbox
will be added automatically.mboxes - Name of mboxes to use to retrieve attributes.static TargetClient create(ClientConfig config)