Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MemoryBookmarkStore

Hierarchy

  • MemoryBookmarkStore

Implements

Index

Methods

discard

  • discard(message: Message): void
  • discard(subId: string, bookmark: string): void

isDiscarded

  • isDiscarded(message: Message): boolean
  • Parameters

    Returns boolean

    true if the bookmark is in the log and marked as discarded and should therefore not be reprocessed. Otherwise, returns false.

log

  • log(message: Message): BigInteger
  • Parameters

    Returns BigInteger

    The corresponding bookmark sequence number for this bookmark.

mostRecent

  • mostRecent(subId: string): string

noPersistedAcks

  • noPersistedAcks(subId: string): void
  • Parameters

    • subId: string

    Returns void

oldestBookmarkSeq

  • oldestBookmarkSeq(subId: string): BigInteger
  • Parameters

    • subId: string

    Returns BigInteger

    The sequence number of the oldest bookmark in the store. 0 if not found/doesn't exist

persisted

  • persisted(subId: string, bookmark: string): void

purge

  • purge(subId?: string): void