Class: Synapse::EventSourcing::SnapshotTaker Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/synapse/event_sourcing/snapshot/taker.rb

Overview

This class is abstract.

Represents a mechanism for creating snapshot events for aggregates

Implementations can choose whether to snapshot the aggregate in the calling thread or asynchronously, though it is typically done asynchronously.

Direct Known Subclasses

AggregateSnapshotTaker

Instance Method Summary collapse

Instance Method Details

#schedule_snapshot(type_identifier, aggregate_id) ⇒ undefined

This method is abstract.

Schedules a snapshot to be taken for an aggregate of the given type and with the given identifier

Parameters:

  • type_identifier (String)
  • aggregate_id (Object)

Returns:

  • (undefined)


17
# File 'lib/synapse/event_sourcing/snapshot/taker.rb', line 17

def schedule_snapshot(type_identifier, aggregate_id); end