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 StateModelCache
public StateModel getOrLoad(String caseClientId, Map<String,String> clientPropertie, PersistenceListeners persistenceListeners) throws JAXBException, IOException
getOrLoad
in interface StateModelCache
JAXBException
IOException
public void storeAndRemove(String caseClientId, PersistenceListeners persistenceListeners) throws IOException
storeAndRemove
in interface StateModelCache
IOException
public void remove(String caseClientId)
remove
in interface StateModelCache
public int size()
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.