Class: Synapse::EventStore::SnapshotEventStore Abstract

Inherits:
EventStore
  • Object
show all
Defined in:
lib/synapse/event_store/event_store.rb

Overview

This class is abstract.

Represents an event store with the capability to manage aggregate snapshots

Instance Method Summary collapse

Methods inherited from EventStore

#append_events, #read_events

Instance Method Details

#append_snapshot_event(type_identifier, snapshot_event) ⇒ undefined

This method is abstract.

Appends the given snapshot event to the event store

Parameters:

  • type_identifier (String)

    Type descriptor of the aggregate to append to

  • snapshot_event (DomainEventMessage)

Returns:

  • (undefined)

Raises:

  • (EventStoreError)

    If an error occurs while appending the event to the store



44
45
46
# File 'lib/synapse/event_store/event_store.rb', line 44

def append_snapshot_event(type_identifier, snapshot_event)
  raise NotImplementedError
end