Search in sources :

Example 6 with BytesMapPersist

use of com.tvd12.calabash.persist.BytesMapPersist in project calabash by youngmonkeys.

the class SimpleBytesMapPersistExecutor method delete.

@Override
public void delete(MapSetting mapSetting, Set<ByteArray> keys) {
    BytesMapPersist mapPersist = getMapPersist(mapSetting);
    if (mapPersist != null) {
        PersistDeleteManyAction action = new PersistDeleteManyAction(keys);
        addPersistActionToQueue(mapSetting, action);
    }
}
Also used : BytesMapPersist(com.tvd12.calabash.persist.BytesMapPersist)

Example 7 with BytesMapPersist

use of com.tvd12.calabash.persist.BytesMapPersist in project calabash by youngmonkeys.

the class SimpleBytesMapPersistExecutor method persist.

@Override
public void persist(MapSetting mapSetting, ByteArray key, byte[] value) {
    BytesMapPersist mapPersist = getMapPersist(mapSetting);
    if (mapPersist != null) {
        PersistSaveOneAction action = new PersistSaveOneAction(key, value);
        addPersistActionToQueue(mapSetting, action);
    }
}
Also used : BytesMapPersist(com.tvd12.calabash.persist.BytesMapPersist)

Aggregations

BytesMapPersist (com.tvd12.calabash.persist.BytesMapPersist)7 PersistAction (com.tvd12.calabash.persist.action.PersistAction)2 PersistSaveManyAction (com.tvd12.calabash.persist.action.PersistSaveManyAction)1 PersistSaveOneAction (com.tvd12.calabash.persist.action.PersistSaveOneAction)1 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 Map (java.util.Map)1 Set (java.util.Set)1