public class RedisJobDefinitionRepository extends AbstractRedisDefinitionRepository<JobDefinition> implements JobDefinitionRepository
JobDefinitionRepository
that persists @{link JobDefinition} in Redis.redisOperations, zSetOperations
Constructor and Description |
---|
RedisJobDefinitionRepository(org.springframework.data.redis.core.RedisOperations<java.lang.String,java.lang.String> redisOperations) |
Modifier and Type | Method and Description |
---|---|
protected JobDefinition |
deserialize(java.lang.String redisKey,
java.lang.String v)
Deserialize from the String representation to the domain object.
|
protected java.lang.String |
serialize(JobDefinition entity)
Provide a String representation of the domain entity.
|
deserializeId, keyFor, serializeId
count, delete, delete, delete, deleteAll, exists, findAll, findAll, findAll, findAll, findOne, getPrefix, idFromRedisKey, redisKeyFromId, save, save, setPrefix, trackMembership
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public RedisJobDefinitionRepository(org.springframework.data.redis.core.RedisOperations<java.lang.String,java.lang.String> redisOperations)
protected JobDefinition deserialize(java.lang.String redisKey, java.lang.String v)
AbstractRedisRepository
deserialize
in class AbstractRedisRepository<JobDefinition,java.lang.String>
redisKey
- the entity idv
- the serialized representation of the domain objectprotected java.lang.String serialize(JobDefinition entity)
AbstractRedisRepository
serialize
in class AbstractRedisRepository<JobDefinition,java.lang.String>