public class RedisDatastoreProvider extends BaseDatastoreProvider implements org.hibernate.service.spi.Startable, org.hibernate.service.spi.Stoppable, org.hibernate.service.spi.ServiceRegistryAwareService, org.hibernate.service.spi.Configurable
| Constructor and Description |
|---|
RedisDatastoreProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsTransactionEmulation() |
void |
configure(Map configurationValues) |
protected com.lambdaworks.redis.RedisClient |
createClient(Hosts.HostAndPort hostAndPort) |
protected com.lambdaworks.redis.cluster.RedisClusterClient |
createClusterClient(Hosts hosts) |
com.lambdaworks.redis.cluster.api.sync.RedisClusterCommands<String,String> |
getConnection() |
Class<? extends GridDialect> |
getDefaultDialect() |
void |
injectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry) |
boolean |
isCluster() |
protected void |
shutdownClient() |
void |
start() |
void |
stop() |
getDefaultQueryParserServiceType, getSchemaDefinerType, getTransactionCoordinatorBuilderpublic Class<? extends GridDialect> getDefaultDialect()
getDefaultDialect in interface DatastoreProviderpublic void configure(Map configurationValues)
configure in interface org.hibernate.service.spi.Configurablepublic void start()
start in interface org.hibernate.service.spi.Startableprotected com.lambdaworks.redis.RedisClient createClient(Hosts.HostAndPort hostAndPort)
protected com.lambdaworks.redis.cluster.RedisClusterClient createClusterClient(Hosts hosts)
public void stop()
stop in interface org.hibernate.service.spi.Stoppableprotected void shutdownClient()
public void injectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry)
injectServices in interface org.hibernate.service.spi.ServiceRegistryAwareServicepublic boolean allowsTransactionEmulation()
allowsTransactionEmulation in interface DatastoreProviderallowsTransactionEmulation in class BaseDatastoreProviderpublic com.lambdaworks.redis.cluster.api.sync.RedisClusterCommands<String,String> getConnection()
public boolean isCluster()
true if RedisDatastoreProvider is configured for cluster mode.Copyright © 2010–2016 Hibernate. All rights reserved.