public class RedisDatastoreProvider extends BaseDatastoreProvider implements Startable, Stoppable, ServiceRegistryAwareService, Configurable
| Constructor and Description |
|---|
RedisDatastoreProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsTransactionEmulation()
Whether the underlying datastore allows emulation of transactions.
|
void |
configure(Map configurationValues) |
com.lambdaworks.redis.cluster.api.sync.RedisClusterCommands<String,String> |
getConnection() |
Class<? extends GridDialect> |
getDefaultDialect()
Returns the
GridDialect type for the underlying datastore. |
void |
injectServices(ServiceRegistryImplementor serviceRegistry) |
boolean |
isCluster() |
void |
start() |
void |
stop() |
getDefaultQueryParserServiceType, getSchemaDefinerType, getTransactionCoordinatorBuilderpublic Class<? extends GridDialect> getDefaultDialect()
DatastoreProviderGridDialect type for the underlying datastore.getDefaultDialect in interface DatastoreProviderGridDialect type; Never null.public void configure(Map configurationValues)
configure in interface Configurablepublic void injectServices(ServiceRegistryImplementor serviceRegistry)
injectServices in interface ServiceRegistryAwareServicepublic boolean allowsTransactionEmulation()
DatastoreProvider
Only of relevance if this provider does not return a custom TransactionCoordinatorBuilder from
DatastoreProvider.getTransactionCoordinatorBuilder(TransactionCoordinatorBuilder).
When transaction emulation is used, transactions only demarcate a unit of work. The transaction emulation will make sure that at commit time all required changes are flushed, but there are otherwise no true transaction, in particular rollback, semantics.
allowsTransactionEmulation in interface DatastoreProviderallowsTransactionEmulation in class BaseDatastoreProvidertrue if the underlying datastore allows transaction emulation, false otherwise.public com.lambdaworks.redis.cluster.api.sync.RedisClusterCommands<String,String> getConnection()
public boolean isCluster()
true if RedisDatastoreProvider is configured for cluster mode.Copyright © 2010-2017 Red Hat, Inc., Emmanuel Bernard and various contributors. All Rights Reserved.