Class ApiDelivery

  • All Implemented Interfaces:
    Delivery

    public class ApiDelivery
    extends Object
    implements Delivery
    Client for Promoted.ai's Delivery API.
    • Constructor Detail

      • ApiDelivery

        public ApiDelivery​(String endpoint,
                           String apiKey,
                           long timeoutMillis,
                           boolean warmup,
                           int maxRequestInsertions,
                           boolean acceptGzip,
                           boolean useGrpc)
        Instantiates a new Delivery API client.
        Parameters:
        endpoint - the endpoint
        apiKey - the api key
        timeoutMillis - the timeout in millis
        maxRequestInsertions - the max number of request insertions
        acceptGzip - whether to accept gzip
        useGrpc - whether to use gRPC instead of HTTP for delivery
        warmup -