@Singleton
@Named
public class SpringMultipleRedisService
extends com.github.flycat.spi.impl.redis.MultipleRedisService
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.BeanClassLoaderAware
| Constructor and Description |
|---|
SpringMultipleRedisService(com.github.flycat.spi.impl.redis.PrimaryRedisService primaryRedisService,
com.github.flycat.spi.impl.redis.SecondaryRedisService secondaryRedisService,
com.github.flycat.context.ApplicationConfiguration applicationConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
org.springframework.data.redis.core.StringRedisTemplate |
createRedisTemplate(java.lang.String host,
java.lang.Integer port,
java.lang.String password) |
void |
destroy() |
com.github.flycat.spi.redis.RedisService |
newRedisService(java.lang.String host,
java.lang.Integer port,
java.lang.String password) |
void |
setBeanClassLoader(java.lang.ClassLoader classLoader) |
createRedis, getApplicationConfiguration@Inject
public SpringMultipleRedisService(com.github.flycat.spi.impl.redis.PrimaryRedisService primaryRedisService,
com.github.flycat.spi.impl.redis.SecondaryRedisService secondaryRedisService,
com.github.flycat.context.ApplicationConfiguration applicationConfiguration)
public com.github.flycat.spi.redis.RedisService newRedisService(java.lang.String host,
java.lang.Integer port,
java.lang.String password)
newRedisService in class com.github.flycat.spi.impl.redis.MultipleRedisServicepublic org.springframework.data.redis.core.StringRedisTemplate createRedisTemplate(java.lang.String host,
java.lang.Integer port,
java.lang.String password)
public void setBeanClassLoader(java.lang.ClassLoader classLoader)
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAwarepublic void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic void destroy()
throws java.lang.Exception
destroy in interface org.springframework.beans.factory.DisposableBeanjava.lang.Exception