| Package | Description |
|---|---|
| org.axonframework.extensions.mongo.eventsourcing.tokenstore |
| Modifier and Type | Method and Description |
|---|---|
static MongoTokenStore.Builder |
MongoTokenStore.builder()
Instantiate a Builder to be able to create a
MongoTokenStore. |
MongoTokenStore.Builder |
MongoTokenStore.Builder.claimTimeout(TemporalAmount claimTimeout)
Sets the
claimTimeout specifying the amount of time this process will wait after which this process
will force a claim of a TrackingToken. |
MongoTokenStore.Builder |
MongoTokenStore.Builder.contentType(Class<?> contentType)
Sets the
contentType to which a TrackingToken should be serialized. |
MongoTokenStore.Builder |
MongoTokenStore.Builder.ensureIndexes(boolean ensureIndexes)
Sets the
ensureIndexes to tell the builder whether to create or not the indexes required to work with
the TokenStore. |
MongoTokenStore.Builder |
MongoTokenStore.Builder.mongoTemplate(MongoTemplate mongoTemplate)
Sets the
MongoTemplate providing access to the collection which stores the TrackingTokens. |
MongoTokenStore.Builder |
MongoTokenStore.Builder.nodeId(String nodeId)
Sets the
nodeId to identify ownership of the tokens. |
MongoTokenStore.Builder |
MongoTokenStore.Builder.serializer(org.axonframework.serialization.Serializer serializer)
Sets the
Serializer used to de-/serialize TrackingTokens with. |
| Constructor and Description |
|---|
MongoTokenStore(MongoTokenStore.Builder builder)
Instantiate a
MongoTokenStore based on the fields contained in the MongoTokenStore.Builder. |
Copyright © 2010–2022. All rights reserved.