public abstract class SyncJRedisBase extends JRedisSupport implements Resource<JRedis>
CacheKeys
Constructor and Description |
---|
SyncJRedisBase() |
Modifier and Type | Method and Description |
---|---|
protected Connection |
createSyncConnection(ConnectionSpec connSpec)
Creates a
Connection with Connection.Modality#Synchronous semantics
suitable for use by synchronous (blocking) JRedis clients. |
Context |
getContext() |
protected abstract void |
setConnection(Connection connection)
This extension point is really only necessary to allow this class to
set the
FaultedConnection when necessary, in course of the
SyncJRedisBase#createSyncConnection(String)
method operation. |
void |
setContext(Context context)
Sets the resource context.
|
append, append, append, append, bgrewriteaof, bgsave, dbsize, debug, decr, decrby, del, discard, echo, echo, echo, echo, exists, expire, expireat, flushall, flushdb, get, getbit, getKeyBytes, getset, getset, getset, getset, hdel, hexists, hget, hgetall, hkeys, hlen, hset, hset, hset, hset, hvals, incr, incrby, info, keys, keys, lastsave, lindex, llen, lpop, lpush, lpush, lpush, lpush, lrange, lrem, lrem, lrem, lrem, lset, lset, lset, lset, ltrim, mget, move, mset, mset, mset, mset, mset, msetnx, msetnx, msetnx, msetnx, msetnx, multi, ping, quit, randomkey, rename, renamenx, rpop, rpoplpush, rpush, rpush, rpush, rpush, sadd, sadd, sadd, sadd, save, scard, sdiff, sdiffstore, serviceRequest, set, set, set, set, setbit, setnx, setnx, setnx, setnx, sinter, sinterstore, sismember, sismember, sismember, sismember, slaveof, slaveofnone, smembers, smove, smove, smove, smove, sort, spop, srandmember, srem, srem, srem, srem, substr, sunion, sunionstore, ttl, type, zadd, zadd, zadd, zadd, zcard, zcount, zincrby, zincrby, zincrby, zincrby, zrange, zrangebyscore, zrangebyscoreSubset, zrangeSubset, zrank, zrank, zrank, zrank, zrem, zrem, zrem, zrem, zremrangebyrank, zremrangebyscore, zrevrange, zrevrangeSubset, zrevrank, zrevrank, zrevrank, zrevrank, zscore, zscore, zscore, zscore
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInterface
protected abstract void setConnection(Connection connection)
FaultedConnection
when necessary, in course of the
SyncJRedisBase#createSyncConnection(String)
method operation.connection
- protected Connection createSyncConnection(ConnectionSpec connSpec)
Connection
with Connection.Modality#Synchronous
semantics
suitable for use by synchronous (blocking) JRedis clients.connSpec
- connection's specificationredisVersion
- redis protocol compliancepublic final Context getContext() throws ResourceException
getContext
in interface Resource<JRedis>
ResourceException
- if the resource for whatever reason can not (or will not)
return a reference to its context. (Security considerations, for example.)Context
public final void setContext(Context context) throws ResourceException
Resource
setContext
in interface Resource<JRedis>
context
- the context for this resource.ResourceException
- if the resource context provided is either insufficient, or,
if the new context (regardless of its utility) can not be used. (For example, it already
has a context and re-setting of contexts is not supported or permissible.)Context
Copyright © 2009–2015. All rights reserved.