public interface SubscriptionPosition
There can be multiple implementations of a SubscriptionPosition for a database but each implementation
must be able to return the subscription position as a String. Implementations can provide optimized data structures
for a particular database. For example if you're streaming changes from a MongoDB event store and persists the position in
MongoDB one could return the MongoDB "Document" after having casted the SubscriptionPosition to a MongoDB specific implementation.
Thus there's no need to serialize the "Document" representing the subscription position to a String and back to a Document again.
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
asString() |
Copyright © 2021. All rights reserved.