package.dist.src.config.topic-configurations.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Client SDK for Momento services
The newest version!
import { MomentoLoggerFactory } from '@gomomento/sdk-core';
import { TopicClientConfiguration, TopicConfiguration } from './topic-configuration';
/**
* Default config provides defaults suitable for most environments; prioritizes success of publishing and receiving messages.
* @export
* @class Default
*/
export declare class Default extends TopicClientConfiguration {
/**
* Provides the latest recommended configuration for a default environment. NOTE: this configuration may
* change in future releases to take advantage of improvements we identify for default configurations.
* @param {MomentoLoggerFactory} [loggerFactory=defaultLoggerFactory]
* @returns {TopicConfiguration}
*/
static latest(loggerFactory?: MomentoLoggerFactory): TopicConfiguration;
}
/**
* Default config provides defaults suitable for AWS lambda or similar environments; relaxes timeouts, disables keep-alives
* to avoid issues with execution environments being frozen and resumed, etc.
* @export
* @class Lambda
*/
export declare class Lambda extends TopicClientConfiguration {
/**
* Provides the latest recommended configuration for a lambda environment. NOTE: this configuration may
* change in future releases to take advantage of improvements we identify for default configurations.
* @param {MomentoLoggerFactory} [loggerFactory=defaultLoggerFactory]
* @returns {CacheConfiguration}
*/
static latest(loggerFactory?: MomentoLoggerFactory): TopicClientConfiguration;
}