public class RedisClassDescriptorStorageFactory extends Object implements ClassDescriptorStorageFactory
RedisClassDescriptorStorage
for all redis servers.
Configure this if you want the Class descriptors for all redis servers to reside on a common redis server.Constructor and Description |
---|
RedisClassDescriptorStorageFactory(RedisServerInfo redisServerInfo)
Creates a factory along with the
RedisClassDescriptorStorage to return. |
RedisClassDescriptorStorageFactory(RedisServerInfo redisServerInfo,
String pdescriptorsKey,
AsyncSocketTransportFactory asyncSocketTransportFactory)
Creates a factory along with the
RedisClassDescriptorStorage to return. |
Modifier and Type | Method and Description |
---|---|
RedisClassDescriptorStorage |
getStorage(ServerInfo conInfo)
Returns the storage.
|
public RedisClassDescriptorStorageFactory(RedisServerInfo redisServerInfo, String pdescriptorsKey, AsyncSocketTransportFactory asyncSocketTransportFactory)
RedisClassDescriptorStorage
to return.redisServerInfo
- Redis Server Info where descriptors are to be storedpdescriptorsKey
- Descriptors key to useasyncSocketTransportFactory
- factory to create AsyncSocketTransport for AsyncRedisConnectionpublic RedisClassDescriptorStorageFactory(RedisServerInfo redisServerInfo)
RedisClassDescriptorStorage
to return. The dbIndex defaults to 0 and
the default key JAVA_CL_DESCRIPTORS is used to store the descriptors.redisServerInfo
- Redis Server Info where descriptors are to be storedpublic RedisClassDescriptorStorage getStorage(ServerInfo conInfo)
getStorage
in interface ClassDescriptorStorageFactory
conInfo
- Redis Server for which the storage is required. This may be ignored if the factory is a single
store like RedisClassDescriptorStorageFactory
and not specific to the Redis Server like
PerConnectionRedisClassDescriptorStorageFactory
.Copyright © 2013- Suresh Mahalingam. All Rights Reserved.