Package ai.promoted.delivery.client
Class DefaultApiFactory
- java.lang.Object
-
- ai.promoted.delivery.client.DefaultApiFactory
-
- All Implemented Interfaces:
ApiFactory
public class DefaultApiFactory extends Object implements ApiFactory
API factory that creates the standard API clients.
-
-
Constructor Summary
Constructors Constructor Description DefaultApiFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeliverycreateApiDelivery(String endpoint, String apiKey, long timeoutMillis, boolean warmup, int maxRequestInsertions, boolean acceptGzip, boolean useGrpc)MetricscreateApiMetrics(String endpoint, String apiKey, long timeoutMillis)DeliverycreateSdkDelivery()
-
-
-
Method Detail
-
createSdkDelivery
public Delivery createSdkDelivery()
- Specified by:
createSdkDeliveryin interfaceApiFactory
-
createApiDelivery
public Delivery createApiDelivery(String endpoint, String apiKey, long timeoutMillis, boolean warmup, int maxRequestInsertions, boolean acceptGzip, boolean useGrpc)
- Specified by:
createApiDeliveryin interfaceApiFactory
-
createApiMetrics
public Metrics createApiMetrics(String endpoint, String apiKey, long timeoutMillis)
- Specified by:
createApiMetricsin interfaceApiFactory
-
-