Package org.chenile.stm.dummy
Class DummyRetrievalStrategy
java.lang.Object
org.chenile.stm.dummy.DummyRetrievalStrategy
- All Implemented Interfaces:
StateEntityRetrievalStrategy<StateEntity>
public class DummyRetrievalStrategy
extends Object
implements StateEntityRetrievalStrategy<StateEntity>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmerge
(StateEntity stateEntity, StateEntity persistentEntity, String eventId) Merges a state entity with another one obtained from persistent storeretrieve
(StateEntity stateEntity) Retrieves a state entity from a persistent store like DB.
-
Constructor Details
-
DummyRetrievalStrategy
public DummyRetrievalStrategy()
-
-
Method Details
-
retrieve
Description copied from interface:StateEntityRetrievalStrategy
Retrieves a state entity from a persistent store like DB.- Specified by:
retrieve
in interfaceStateEntityRetrievalStrategy<StateEntity>
- Returns:
- Throws:
Exception
-
merge
public StateEntity merge(StateEntity stateEntity, StateEntity persistentEntity, String eventId) throws Exception Description copied from interface:StateEntityRetrievalStrategy
Merges a state entity with another one obtained from persistent store- Specified by:
merge
in interfaceStateEntityRetrievalStrategy<StateEntity>
- Returns:
- Throws:
Exception
-