public class AxonServerEventStore
extends org.axonframework.eventsourcing.eventstore.AbstractEventStore
| Modifier and Type | Class and Description |
|---|---|
static class |
AxonServerEventStore.Builder
Builder class to instantiate a
AxonServerEventStore. |
| Modifier | Constructor and Description |
|---|---|
protected |
AxonServerEventStore(AxonServerEventStore.Builder builder)
Instantiate a
AxonServerEventStore based on the fields contained in the AxonServerEventStore.Builder. |
| Modifier and Type | Method and Description |
|---|---|
static AxonServerEventStore.Builder |
builder()
Instantiate a Builder to be able to create a
AxonServerEventStore. |
org.axonframework.messaging.StreamableMessageSource<org.axonframework.eventhandling.TrackedEventMessage<?>> |
createStreamableMessageSourceForContext(String context)
Creates a
StreamableMessageSource that streams events from the given context, rather than the
default context the application was configured to connect to. |
protected Optional<org.axonframework.eventhandling.DomainEventMessage<?>> |
handleSnapshotReadingError(String aggregateIdentifier,
Throwable e) |
org.axonframework.eventhandling.TrackingEventStream |
openStream(org.axonframework.eventhandling.TrackingToken trackingToken) |
QueryResultStream |
query(String query,
boolean liveUpdates) |
org.axonframework.eventsourcing.eventstore.DomainEventStream |
readEvents(String aggregateIdentifier) |
protected org.axonframework.axonserver.connector.event.axon.AxonServerEventStore.AxonIQEventStorageEngine |
storageEngine() |
createHeadToken, createTailToken, createTokenAt, lastSequenceNumberFor, prepareCommit, readEvents, stagedDomainEventMessages, storeSnapshotafterCommit, commit, intercept, publish, queuedMessages, registerDispatchInterceptor, subscribeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected AxonServerEventStore(AxonServerEventStore.Builder builder)
AxonServerEventStore based on the fields contained in the AxonServerEventStore.Builder.
Will assert that the EventStorageEngine is set. If not, the AxonServerConfiguration and AxonServerConnectionManager should minimally be provided to create an AxonServer specific EventStorageEngine
implementation. If either of these null assertions fail, an AxonConfigurationException will be
thrown.
builder - the AxonServerEventStore.Builder used to instantiate a AxonServerEventStore instancepublic static AxonServerEventStore.Builder builder()
AxonServerEventStore.
The main goal of this Builder is to instantiate an AxonServer specific EventStorageEngine. The properties
which may be provided through this Builder are thus all used to end up with that EventStorageEngine
implementation. An EventStorageEngine may be provided directly however, although we encourage the usage of the
AxonServerEventStore.Builder.configuration and AxonServerEventStore.Builder.axonServerConnectionManager functions to let it be created.
The EventUpcaster is defaulted to a NoOpEventUpcaster and the SpanFactory is defaulted
to a NoOpSpanFactory.
The event and snapshot Serializer, AxonServerConfiguration and AxonServerConnectionManager are hard requirements if no EventStorageEngine is provided directly.
AxonServerEventStorepublic org.axonframework.eventhandling.TrackingEventStream openStream(org.axonframework.eventhandling.TrackingToken trackingToken)
public QueryResultStream query(String query, boolean liveUpdates)
protected org.axonframework.axonserver.connector.event.axon.AxonServerEventStore.AxonIQEventStorageEngine storageEngine()
storageEngine in class org.axonframework.eventsourcing.eventstore.AbstractEventStorepublic org.axonframework.messaging.StreamableMessageSource<org.axonframework.eventhandling.TrackedEventMessage<?>> createStreamableMessageSourceForContext(String context)
StreamableMessageSource that streams events from the given context, rather than the
default context the application was configured to connect to.context - the name of the context to create a message source forStreamableMessageSource of TrackedEventMessages tied to the given contextprotected Optional<org.axonframework.eventhandling.DomainEventMessage<?>> handleSnapshotReadingError(String aggregateIdentifier, Throwable e)
handleSnapshotReadingError in class org.axonframework.eventsourcing.eventstore.AbstractEventStorepublic org.axonframework.eventsourcing.eventstore.DomainEventStream readEvents(String aggregateIdentifier)
readEvents in interface org.axonframework.eventsourcing.eventstore.EventStorereadEvents in class org.axonframework.eventsourcing.eventstore.AbstractEventStoreCopyright © 2010–2023. All rights reserved.