/** * Get the {@link RedisConnectionFactory} object associated with the only Redis service bound to the app. * * This is equivalent to the {@code <cloud:redis-connection-factory/>} element * * @return redis connection factory * @throws CloudException * if there are either 0 or more than 1 redis services. */ @Override public RedisConnectionFactory redisConnectionFactory() { return redisConnectionFactory((PooledServiceConnectorConfig) null); }
/** * Get the {@link RedisConnectionFactory} object associated with the only Redis service bound to the app. * * This is equivalent to the {@code <cloud:redis-connection-factory/>} element * * @return redis connection factory * @throws CloudException * if there are either 0 or more than 1 redis services. */ @Override public RedisConnectionFactory redisConnectionFactory() { return redisConnectionFactory((PooledServiceConnectorConfig) null); }
/** * Get the {@link RedisConnectionFactory} object for the specified Redis service. * * This is equivalent to the {@code <cloud:redis-connection-factory service-id="serviceId">} element. * * @param serviceId * the name of the service * @return redis connection factory * @throws CloudException * if the specified service doesn't exist */ @Override public RedisConnectionFactory redisConnectionFactory(String serviceId) { return redisConnectionFactory(serviceId, null); }
/** * Get the {@link RedisConnectionFactory} object for the specified Redis service. * * This is equivalent to the {@code <cloud:redis-connection-factory service-id="serviceId">} element. * * @param serviceId * the name of the service * @return redis connection factory * @throws CloudException * if the specified service doesn't exist */ @Override public RedisConnectionFactory redisConnectionFactory(String serviceId) { return redisConnectionFactory(serviceId, null); }