List of usage examples for org.springframework.data.redis.connection RedisConnection getSubscription
@Nullable Subscription getSubscription();
From source file:com.zxy.commons.cache.RedisUtils.java
/** * Returns the current subscription for this connection or null if the connection is not subscribed. * /* w w w.j a va 2s . co m*/ * @return the current subscription, null if none is available */ public static Subscription getSubscription() { return redisTemplate.execute(new RedisCallback<Subscription>() { @Override public Subscription doInRedis(RedisConnection redis) throws DataAccessException { return redis.getSubscription(); } }); }
From source file:com.zxy.commons.cache.RedisHelper.java
/** * Returns the current subscription for this connection or null if the connection is not subscribed. * /*from w w w .j ava 2 s. com*/ * @return the current subscription, null if none is available */ public Subscription getSubscription() { return redisTemplate.execute(new RedisCallback<Subscription>() { @Override public Subscription doInRedis(RedisConnection redis) throws DataAccessException { return redis.getSubscription(); } }); }