Class InMemoryEventStorageEngine

java.lang.Object
org.axonframework.eventsourcing.eventstore.inmemory.InMemoryEventStorageEngine
All Implemented Interfaces:
DescribableComponent, EventStorageEngine

public class InMemoryEventStorageEngine extends Object implements EventStorageEngine
Thread-safe EventStorageEngine implementation storing events in memory.
Since:
3.0.0
Author:
Allard Buijze, Rene de Waele, Milan Savić, Steven van Beelen
  • Constructor Details

    • InMemoryEventStorageEngine

      public InMemoryEventStorageEngine()
      Initializes an in-memory EventStorageEngine.

      The engine will be empty, and there is no offset for the first token.

    • InMemoryEventStorageEngine

      public InMemoryEventStorageEngine(long offset)
      Initializes an in-memory EventStorageEngine using given offset to initialize the tokens.
      Parameters:
      offset - The value to use for the token of the first event appended.
  • Method Details