AMPS C# Client
5.3.3.4
AMPS C# Client for .NET
|
Public Member Functions | |
LoggedBookmarkStore (string path) | |
LoggedBookmarkStore (string path, int targetNumberOfSubscriptions) | |
LoggedBookmarkStore (string path, bool useLastModifiedTime) | |
LoggedBookmarkStore (string path, RecoveryPointAdapter adapter_, RecoveryPointFactory factory_=null) | |
LoggedBookmarkStore (string path, int targetNumberOfSubscriptions, RecoveryPointAdapter adapter_, RecoveryPointFactory factory_=null) | |
LoggedBookmarkStore (string path, int targetNumberOfSubscriptions, bool useLastModifiedTime) | |
LoggedBookmarkStore (string path, int targetNumberOfSubscriptions, bool useLastModifiedTime, RecoveryPointAdapter adapter_, RecoveryPointFactory factory_=null) | |
void | prune () |
void | prune (String tmpFileName_) |
void | _prune (String tmpFileName_) |
long | log (Message message) |
void | discard (Field subId, long bookmarkSeqNo) |
void | discard (Message message) |
Field | getMostRecent (Field subId, bool useList=true) |
bool | isDiscarded (Message message) |
void | persisted (Field subId, long bookmark) |
void | persisted (Field subId, BookmarkField bookmark) |
long | getOldestBookmarkSeq (Field subId) |
void | setResizeHandler (BookmarkStoreResizeHandler handler) |
void | purge () |
void | purge (Field subId_) |
void | setRecoveryPointFactory (RecoveryPointFactory factory_) |
void | Dispose () |
void | close () |
void | setServerVersion (int version) |
int | getServerVersion () |
LoggedBookmarkStore implements a sequentially written log of incoming and discarded messages. The store tracks every bookmark
processed in a file. An application should periodically call prune to manage the size of the file by removing outdated entries. The Developer Guide contains advice on strategies for pruning the LoggedBookmarkStore.
|
inline |
Log a discard-bookmark entry to the persistent log based on a bookmark sequence number.
Implements AMPS.Client.BookmarkStore.
|
inline |
Log a discard-bookmark entry to the persistent log based on a Message.
Implements AMPS.Client.BookmarkStore.
Returns the most recent bookmark from the log that ought to be used for (re-)subscriptions.
Implements AMPS.Client.BookmarkStore.
|
inline |
Called to retrieve the sequence number of the oldest bookmark in the store.
Implements AMPS.Client.BookmarkStore.
|
inline |
Called for each arriving message to determine if the application has already seen this bookmark and should not be reprocessed. Returns 'true' if the bookmark is in the log and should not be re-processed, false otherwise.
Implements AMPS.Client.BookmarkStore.
|
inline |
Log a bookmark to the persistent log.
Implements AMPS.Client.BookmarkStore.
|
inline |
Called to mark a message as safely persisted by AMPS to all of its sync replication destination.
Implements AMPS.Client.BookmarkStore.
|
inline |
Called to mark a message as safely persisted by AMPS to all of its sync replication destination.
Implements AMPS.Client.BookmarkStore.
|
inline |
Called on a LoggedBookmarkStore to remove bookmark records from the store when they are no longer needed; see the Developer Guide for advice on stratgies for when to call this function. If this function is not called, bookmark records are never removed from the LoggedBookmarkStore.
|
inline |
Called on a LoggedBookmarkStore to remove bookmark records from the store when they are no longer needed (specifying the temporary file name to use during this process); see the Developer Guide for advice on stratgies for when to call this function. If this function is not called, bookmark records are never removed from the LoggedBookmarkStore.
|
inline |
Called to purge the contents of this store. Removes any tracking history associated with publishers and received messages, and may delete or truncate on-disk representations as well.
Implements AMPS.Client.BookmarkStore.
|
inline |
Called to purge the contents of this store for a given subId. Removes any tracking history associated with publishers and received messages, and may delete or truncate on-disk representations as well.
Implements AMPS.Client.BookmarkStore.
|
inline |
Called to set a resize handler that is invoked when the store needs to resize.
Implements AMPS.Client.BookmarkStore.
|
inline |
Called to set the version of the server used with this store.
Implements AMPS.Client.BookmarkStore.