public class DefaultStateModelCache extends Object implements StateModelCache
Default implementation of a StateModelCache based on a concurrent hash map.
| Constructor and Description |
|---|
DefaultStateModelCache() |
| Modifier and Type | Method and Description |
|---|---|
StateModel |
getOrLoad(String caseClientId,
Map<String,String> clientPropertie,
PersistenceListeners persistenceListeners) |
StateModel |
put(StateModel stateModel) |
void |
remove(String caseClientId) |
int |
size() |
void |
storeAndRemove(String caseClientId,
PersistenceListeners persistenceListeners) |
public StateModel put(StateModel stateModel)
put in interface StateModelCachepublic StateModel getOrLoad(String caseClientId, Map<String,String> clientPropertie, PersistenceListeners persistenceListeners) throws JAXBException, IOException
getOrLoad in interface StateModelCacheJAXBExceptionIOExceptionpublic void storeAndRemove(String caseClientId, PersistenceListeners persistenceListeners) throws IOException
storeAndRemove in interface StateModelCacheIOExceptionpublic void remove(String caseClientId)
remove in interface StateModelCachepublic int size()
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.