Class: Hecks::Ports::Persistence::NullSagaStore

Inherits:
Object
  • Object
show all
Defined in:
lib/hecks/ports/persistence/null_saga_store.rb

Overview

THE NO-OP SAGA STORE — what Registry#saga_persistence hands back for a domain whose resolved adapter doesn't implement the (optional) saga-persistence capability: Memory, deliberately (sagas stay in-memory-only, exactly as they always have), and any RemoteRuntime-shaped adapter (Lambda; the real durability for those lives on the other side of the call — Phase 1, not here). SagaInterpreter's hook points call through saga_persistence(domain) unconditionally; this is what makes that safe without a respond_to? check at every call site, mirroring the same optional-capability shape Ports::Persistence::AppendOnly already gives adapters that don't implement reset!/events/record_event.

Instance Method Summary collapse

Instance Method Details

#delete_sagaObject



18
# File 'lib/hecks/ports/persistence/null_saga_store.rb', line 18

def delete_saga(**) = nil

#each_sagaObject



19
# File 'lib/hecks/ports/persistence/null_saga_store.rb', line 19

def each_saga(*) = nil

#save_sagaObject



17
# File 'lib/hecks/ports/persistence/null_saga_store.rb', line 17

def save_saga(**) = nil