public class RedisDatastoreProvider
extends org.hibernate.ogm.datastore.spi.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(org.hibernate.ogm.cfg.spi.Hosts.HostAndPort hostAndPort) |
protected com.lambdaworks.redis.cluster.RedisClusterClient |
createClusterClient(org.hibernate.ogm.cfg.spi.Hosts hosts) |
com.lambdaworks.redis.cluster.api.sync.RedisClusterCommands<String,String> |
getConnection() |
Class<? extends org.hibernate.ogm.dialect.spi.GridDialect> |
getDefaultDialect() |
void |
injectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry) |
boolean |
isCluster() |
protected void |
shutdownClient() |
void |
start() |
void |
stop() |
public Class<? extends org.hibernate.ogm.dialect.spi.GridDialect> getDefaultDialect()
getDefaultDialect in interface org.hibernate.ogm.datastore.spi.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(org.hibernate.ogm.cfg.spi.Hosts.HostAndPort hostAndPort)
protected com.lambdaworks.redis.cluster.RedisClusterClient createClusterClient(org.hibernate.ogm.cfg.spi.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 org.hibernate.ogm.datastore.spi.DatastoreProviderallowsTransactionEmulation in class org.hibernate.ogm.datastore.spi.BaseDatastoreProviderpublic com.lambdaworks.redis.cluster.api.sync.RedisClusterCommands<String,String> getConnection()
public boolean isCluster()
true if RedisDatastoreProvider is configured for cluster mode.Copyright © 2010–2017 Hibernate. All rights reserved.