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
Constructors -
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:StateEntityRetrievalStrategyRetrieves a state entity from a persistent store like DB.- Specified by:
retrievein interfaceStateEntityRetrievalStrategy<StateEntity>- Returns:
- Throws:
Exception
-
merge
public StateEntity merge(StateEntity stateEntity, StateEntity persistentEntity, String eventId) throws Exception Description copied from interface:StateEntityRetrievalStrategyMerges a state entity with another one obtained from persistent store- Specified by:
mergein interfaceStateEntityRetrievalStrategy<StateEntity>- Returns:
- Throws:
Exception
-