Search in sources :

Example 1 with EntityMapPersistSetting

use of com.tvd12.calabash.local.setting.EntityMapPersistSetting in project calabash by youngmonkeys.

the class SimpleEntityMapPersistExecutor method addPersistActionToQueue.

protected void addPersistActionToQueue(EntityMapSetting setting, PersistAction action) {
    String mapName = setting.getMapName();
    EntityMapPersistSetting persistSetting = setting.getPersistSetting();
    long writeDelay = persistSetting.getWriteDelay();
    PersistActionQueue queue = writeDelay > 0 ? actionQueueManager.getDelayedQueue(mapName) : actionQueueManager.getImmediateQueue(mapName);
    queue.add(action);
}
Also used : EntityMapPersistSetting(com.tvd12.calabash.local.setting.EntityMapPersistSetting)

Aggregations

EntityMapPersistSetting (com.tvd12.calabash.local.setting.EntityMapPersistSetting)1