Interface DefinitionRepository
public interface DefinitionRepository
Persistence contract for event definitions.
-
Method Summary
Modifier and TypeMethodDescriptionFinds one definition.findAll()Lists known definitions.voidreplaceAll(Collection<EventDefinition> definitions) Atomically replaces the complete definition snapshot.voidsave(EventDefinition definition) Inserts or replaces a definition.
-
Method Details
-
save
Inserts or replaces a definition.- Parameters:
definition- definition to insert or replace by identifier
-
find
Finds one definition.- Parameters:
id- event identifier- Returns:
- matching definition, if present
-
findAll
Collection<EventDefinition> findAll()Lists known definitions.- Returns:
- snapshot of all known definitions
-
replaceAll
Atomically replaces the complete definition snapshot.- Parameters:
definitions- fully validated replacement definitions
-