Package org.chenile.stm.action
Interface StateEntityRetrievalStrategy<StateEntityType extends StateEntity>
- All Known Implementing Classes:
DummyRetrievalStrategy
,GenericRetrievalStrategy
public interface StateEntityRetrievalStrategy<StateEntityType extends StateEntity>
-
Method Summary
Modifier and TypeMethodDescriptionmerge
(StateEntityType stateEntity, StateEntityType persistentEntity, String eventId) Merges a state entity with another one obtained from persistent storeretrieve
(StateEntityType stateEntity) Retrieves a state entity from a persistent store like DB.
-
Method Details
-
retrieve
Retrieves a state entity from a persistent store like DB.- Parameters:
stateEntity
-- Returns:
- Throws:
Exception
-
merge
StateEntityType merge(StateEntityType stateEntity, StateEntityType persistentEntity, String eventId) throws Exception Merges a state entity with another one obtained from persistent store- Parameters:
stateEntity
-- Returns:
- Throws:
Exception
-