跳到主要内容
版本:Next

abstractBaseWatcher <Client>

Hierarchy

Implements

  • Watcher

Index

Constructors

constructor

  • new BaseWatcher<Client>(options: { pubClient?: Client; subClient: Client; subscribeKeyName?: string }): BaseWatcher<Client>
  • Type parameters

    • Client

Methods

getDefaultSubscribeKeyName

  • getDefaultSubscribeKeyName(): string

abstractpublishData

  • publishData(): any

setUpdateCallback

  • setUpdateCallback(callback: () => void): void

abstractsubscribeData

  • subscribeData(callback: any): any

update

  • update(): Promise<boolean>