Class LocalEventStoreClient
java.lang.Object
io.fluxzero.sdk.tracking.client.LocalTrackingClient
io.fluxzero.sdk.persisting.eventsourcing.client.LocalEventStoreClient
- All Implemented Interfaces:
Monitored<List<SerializedMessage>>, HasMessageStore, EventStoreClient, GatewayClient, TrackingClient, AutoCloseable
A client implementation for managing and storing events in an in-memory event store. The LocalEventStoreClient
extends the
LocalTrackingClient to leverage its tracking and gateway functionality while applying it
specifically to event storage operations. It implements the EventStoreClient interface and serves as a
lightweight, local event store client, primarily for testing or non-distributed environments.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes any open resources associated with this client.Returns the associatedMessageStoreinstance.Methods inherited from class LocalTrackingClient
append, claimSegment, disconnectTracker, getPosition, read, readFromIndex, registerMonitor, resetPosition, setRetentionTime, storePositionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EventStoreClient
deleteEvents, deleteEvents, getAggregateIds, getAggregatesFor, getEvents, getEvents, getEvents, getRelationships, getRelationships, repairRelationships, storeEvents, storeEvents, updateRelationshipsMethods inherited from interface TrackingClient
disconnectTracker, getMessageType, getTopic, readAndWait, resetPosition, storePosition
-
Constructor Details
-
LocalEventStoreClient
-
-
Method Details
-
getMessageStore
Description copied from interface:HasMessageStoreReturns the associatedMessageStoreinstance.- Specified by:
getMessageStorein interfaceHasMessageStore
-
close
public void close()Description copied from interface:TrackingClientCloses any open resources associated with this client.Once closed, the client should no longer be used to fetch or commit tracking state.
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceEventStoreClient- Specified by:
closein interfaceGatewayClient- Specified by:
closein interfaceTrackingClient- Overrides:
closein classLocalTrackingClient
-