public class PerConnectionRedisClassDescriptorStorageFactory extends Object implements ClassDescriptorStorageFactory
RedisClassDescriptorStorage
for the given redis server.
This is the default used by aredis.Constructor and Description |
---|
PerConnectionRedisClassDescriptorStorageFactory(AsyncSocketTransportFactory pasyncSocketTransportFactory)
Creates a factory object.
|
PerConnectionRedisClassDescriptorStorageFactory(AsyncSocketTransportFactory pasyncSocketTransportFactory,
int pdbIndex)
Creates a factory object.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescriptorsKey()
Gets the key in which the Descriptors are stored.
|
RedisClassDescriptorStorage |
getStorage(ServerInfo conInfo)
Gets the storage to use for the passed server.
|
void |
setDescriptorsKey(String pdescriptorsKey)
Sets the descriptors key to use.
|
public PerConnectionRedisClassDescriptorStorageFactory(AsyncSocketTransportFactory pasyncSocketTransportFactory, int pdbIndex)
pasyncSocketTransportFactory
- factory to create AsyncSocketTransport for AsyncRedisConnectionpdbIndex
- dbIndex to usepublic PerConnectionRedisClassDescriptorStorageFactory(AsyncSocketTransportFactory pasyncSocketTransportFactory)
pasyncSocketTransportFactory
- factory to create AsyncSocketTransport for AsyncRedisConnectionpublic 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
.public String getDescriptorsKey()
public void setDescriptorsKey(String pdescriptorsKey)
pdescriptorsKey
- Key to use for storing the descriptors.Copyright © 2013- Suresh Mahalingam. All Rights Reserved.