Package org.jobrunr.storage.nosql.redis
Class JedisRedisDBCreator
java.lang.Object
org.jobrunr.storage.nosql.common.NoSqlDatabaseCreator<JedisRedisMigration>
org.jobrunr.storage.nosql.redis.JedisRedisDBCreator
-
Constructor Summary
ConstructorDescriptionJedisRedisDBCreator
(NoSqlStorageProvider noSqlStorageProvider, redis.clients.jedis.JedisPool jedisPool, String keyPrefix) -
Method Summary
Modifier and TypeMethodDescriptionprotected redis.clients.jedis.Jedis
getJedis()
protected boolean
isNewMigration
(NoSqlMigration noSqlMigration) protected boolean
isValidMigration
(NoSqlMigration noSqlMigration) protected boolean
markMigrationAsDone
(NoSqlMigration noSqlMigration) protected void
runMigration
(JedisRedisMigration noSqlMigration) Methods inherited from class org.jobrunr.storage.nosql.common.NoSqlDatabaseCreator
getMigrations, runMigrationIfNecessary, runMigrations
-
Constructor Details
-
JedisRedisDBCreator
public JedisRedisDBCreator(NoSqlStorageProvider noSqlStorageProvider, redis.clients.jedis.JedisPool jedisPool, String keyPrefix)
-
-
Method Details
-
isValidMigration
- Overrides:
isValidMigration
in classNoSqlDatabaseCreator<JedisRedisMigration>
-
isNewMigration
- Specified by:
isNewMigration
in classNoSqlDatabaseCreator<JedisRedisMigration>
-
runMigration
- Specified by:
runMigration
in classNoSqlDatabaseCreator<JedisRedisMigration>
- Throws:
Exception
-
markMigrationAsDone
- Specified by:
markMigrationAsDone
in classNoSqlDatabaseCreator<JedisRedisMigration>
-
getJedis
protected redis.clients.jedis.Jedis getJedis()
-