Methods
delete
- delete(stream: string, consumer: string): Promise<boolean>
-
Parameters
-
stream: string
-
consumer: string
Returns Promise<boolean>
info
- info(stream: string, consumer: string): Promise<ConsumerInfo>
-
Parameters
-
stream: string
-
consumer: string
pause
- pause(stream: string, name: string, until?: Date): Promise<{
pause_until?: string;
paused: boolean;
}>
-
Parameters
-
stream: string
-
name: string
-
Optional
until: Date
Returns Promise<{
pause_until?: string;
paused: boolean;
}>
resume
- resume(stream: string, name: string): Promise<{
pause_until?: string;
paused: boolean;
}>
-
Parameters
-
stream: string
-
name: string
Returns Promise<{
pause_until?: string;
paused: boolean;
}>
update
- update(stream: string, durable: string, cfg: Partial<ConsumerUpdateConfig>): Promise<ConsumerInfo>
-
Parameters
-
stream: string
-
durable: string
-
Adds a new consumer to the specified stream with the specified consumer options.