A no-op default implementation of the BookmarkStore interface that does nothing.
More...
A no-op default implementation of the BookmarkStore interface that does nothing.
◆ DefaultBookmarkStore()
AMPS.Client.DefaultBookmarkStore.DefaultBookmarkStore |
( |
| ) |
|
|
inline |
◆ discard() [1/2]
void AMPS.Client.DefaultBookmarkStore.discard |
( |
Field |
topic, |
|
|
long |
bookmarkSequenceNumber |
|
) |
| |
|
inline |
Discards a bookmark associated with the specified topic and bookmark sequence number.
- Parameters
-
topic | The topic associated with the bookmark. |
bookmarkSequenceNumber | The sequence number of the bookmark to discard. |
Implements AMPS.Client.BookmarkStore.
◆ discard() [2/2]
void AMPS.Client.DefaultBookmarkStore.discard |
( |
Message |
message | ) |
|
|
inline |
Discards the bookmark associated with the given message.
- Parameters
-
message | The message containing the bookmark to discard. |
Implements AMPS.Client.BookmarkStore.
◆ Dispose()
void AMPS.Client.DefaultBookmarkStore.Dispose |
( |
| ) |
|
|
inline |
Disposes of any resources held by the bookmark store.
◆ getMostRecent()
Field AMPS.Client.DefaultBookmarkStore.getMostRecent |
( |
Field |
topic, |
|
|
bool |
useList |
|
) |
| |
|
inline |
Retrieves the most recent bookmark for the specified topic.
- Parameters
-
topic | The topic for which to retrieve the most recent bookmark. |
useList | Specifies whether to use the bookmark list. |
- Returns
- The most recent bookmark for the specified topic.
Implements AMPS.Client.BookmarkStore.
◆ getOldestBookmarkSeq()
long AMPS.Client.DefaultBookmarkStore.getOldestBookmarkSeq |
( |
Field |
subId | ) |
|
|
inline |
Retrieves the oldest bookmark sequence number associated with the specified subscription ID.
- Parameters
-
subId | The subscription ID. |
- Returns
- The oldest bookmark sequence number.</returns
Implements AMPS.Client.BookmarkStore.
◆ isDiscarded()
bool AMPS.Client.DefaultBookmarkStore.isDiscarded |
( |
Message |
message | ) |
|
|
inline |
Determines whether the message should be discarded.
- Parameters
-
message | The message to check. |
- Returns
- Always returns false.
Implements AMPS.Client.BookmarkStore.
◆ log()
long AMPS.Client.DefaultBookmarkStore.log |
( |
Message |
message | ) |
|
|
inline |
Logs the bookmark associated with the given message.
- Parameters
-
message | The message containing the bookmark. |
- Returns
- Returns 0.
Implements AMPS.Client.BookmarkStore.
◆ persisted() [1/2]
Marks a bookmark as persisted for the specified subscription ID.
- Parameters
-
subId | The subscription ID. |
bookmark | The bookmark to mark as persisted. |
Implements AMPS.Client.BookmarkStore.
◆ persisted() [2/2]
void AMPS.Client.DefaultBookmarkStore.persisted |
( |
Field |
subId, |
|
|
long |
bookmark |
|
) |
| |
|
inline |
Marks a bookmark as persisted for the specified subscription ID.
- Parameters
-
subId | The subscription ID. |
bookmark | The bookmark to mark as persisted. |
Implements AMPS.Client.BookmarkStore.
◆ purge() [1/2]
void AMPS.Client.DefaultBookmarkStore.purge |
( |
| ) |
|
|
inline |
◆ purge() [2/2]
void AMPS.Client.DefaultBookmarkStore.purge |
( |
Field |
subId | ) |
|
|
inline |
Purges the bookmark associated with the specified subscription ID.
- Parameters
-
subId | The subscription ID whose bookmark to purge. |
Implements AMPS.Client.BookmarkStore.
◆ setResizeHandler()
Sets the resize handler for the bookmark store.
- Parameters
-
handler | The resize handler to set. |
Implements AMPS.Client.BookmarkStore.
◆ setServerVersion()
void AMPS.Client.DefaultBookmarkStore.setServerVersion |
( |
int |
version | ) |
|
|
inline |
The documentation for this class was generated from the following file:
- AMPS.Client/DefaultBookmarkStore.cs