trade360-nodejs-sdk
Version:
LSports Trade360 SDK for Node.js
40 lines (39 loc) • 1.4 kB
TypeScript
import { MQSettingsOptions } from '../feed';
import { ILogger } from '../logger';
import { StatusResponseBody } from '../api/common';
/**
* Utility class for distribution operations such
* as starting and stopping distribution
* and checking the status of the distribution
* service through the API request object.
*/
export declare class DistributionUtil {
private static packageDistributionApi?;
private static logger?;
private static delayMs;
constructor(settings: MQSettingsOptions, logger: ILogger);
/**
* Check the status of the distribution service
* through the API request object.
* @returns the status of the distribution service
*/
static checkStatus(): Promise<StatusResponseBody | undefined>;
/**
* Start the distribution service through the API
* request object. This method will wait for a delay
* before resolving.
* @returns a promise that resolves when the
* distribution service is started after the delay
* has passed successfully
*/
static start(): Promise<void>;
/**
* Stop the distribution service through the API
* request object. This method will wait for a
* delay before resolving.
* @returns a promise that resolves when the
* distribution service is stopped after the
* delay has passed successfully
*/
static stop(): Promise<void>;
}