Package org.jobrunr.storage.nosql.redis
Class LettuceRedisDBCreator
- java.lang.Object
-
- org.jobrunr.storage.nosql.common.NoSqlDatabaseCreator<LettuceRedisMigration>
-
- org.jobrunr.storage.nosql.redis.LettuceRedisDBCreator
-
public class LettuceRedisDBCreator extends NoSqlDatabaseCreator<LettuceRedisMigration>
-
-
Constructor Summary
Constructors Constructor Description LettuceRedisDBCreator(NoSqlStorageProvider noSqlStorageProvider, org.apache.commons.pool2.impl.GenericObjectPool<io.lettuce.core.api.StatefulRedisConnection> pool, java.lang.String keyPrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.lettuce.core.api.StatefulRedisConnection
getConnection()
protected boolean
isNewMigration(NoSqlMigration noSqlMigration)
protected boolean
isValidMigration(NoSqlMigration noSqlMigration)
protected boolean
markMigrationAsDone(NoSqlMigration noSqlMigration)
protected void
runMigration(LettuceRedisMigration noSqlMigration)
-
Methods inherited from class org.jobrunr.storage.nosql.common.NoSqlDatabaseCreator
getMigrations, runMigrationIfNecessary, runMigrations
-
-
-
-
Constructor Detail
-
LettuceRedisDBCreator
public LettuceRedisDBCreator(NoSqlStorageProvider noSqlStorageProvider, org.apache.commons.pool2.impl.GenericObjectPool<io.lettuce.core.api.StatefulRedisConnection> pool, java.lang.String keyPrefix)
-
-
Method Detail
-
isValidMigration
protected boolean isValidMigration(NoSqlMigration noSqlMigration)
- Overrides:
isValidMigration
in classNoSqlDatabaseCreator<LettuceRedisMigration>
-
isNewMigration
protected boolean isNewMigration(NoSqlMigration noSqlMigration)
- Specified by:
isNewMigration
in classNoSqlDatabaseCreator<LettuceRedisMigration>
-
runMigration
protected void runMigration(LettuceRedisMigration noSqlMigration) throws java.lang.Exception
- Specified by:
runMigration
in classNoSqlDatabaseCreator<LettuceRedisMigration>
- Throws:
java.lang.Exception
-
markMigrationAsDone
protected boolean markMigrationAsDone(NoSqlMigration noSqlMigration)
- Specified by:
markMigrationAsDone
in classNoSqlDatabaseCreator<LettuceRedisMigration>
-
getConnection
protected io.lettuce.core.api.StatefulRedisConnection getConnection()
-
-