Class LocalEventStoreClient

java.lang.Object
io.fluxzero.sdk.tracking.client.LocalTrackingClient
io.fluxzero.sdk.persisting.eventsourcing.client.LocalEventStoreClient
All Implemented Interfaces:
EventStoreClient, GatewayClient, TrackingClient, AutoCloseable

public class LocalEventStoreClient extends LocalTrackingClient implements EventStoreClient
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 Details

    • LocalEventStoreClient

      public LocalEventStoreClient(Duration messageExpiration)
    • LocalEventStoreClient

      public LocalEventStoreClient(Duration messageExpiration, Duration initialPositionLag)
      Creates a local event store with a configurable look-back for consumers without a stored position.
      Parameters:
      messageExpiration - retention duration for local events
      initialPositionLag - duration subtracted from the current time for a new consumer
  • Method Details