Example usage for org.springframework.data.keyvalue.core KeyValueTemplate KeyValueTemplate

List of usage examples for org.springframework.data.keyvalue.core KeyValueTemplate KeyValueTemplate

Introduction

In this page you can find the example usage for org.springframework.data.keyvalue.core KeyValueTemplate KeyValueTemplate.

Prototype

public KeyValueTemplate(KeyValueAdapter adapter) 

Source Link

Document

Create new KeyValueTemplate using the given KeyValueAdapter with a default KeyValueMappingContext .

Usage

From source file:com.reactivetechnologies.platform.datagrid.HazelcastConfigurator.java

@Bean
@Primary
public KeyValueTemplate kvtemplate() throws Exception {
    KeyValueTemplate kv = new KeyValueTemplate(hzKeyValueAdaptor());
    return kv;

}

From source file:com.reactivetechnologies.platform.datagrid.HazelcastConfigurator.java

@Bean
@Qualifier("kvTemplateJoinImmediate")
public KeyValueTemplate kvtemplateAndJoin() throws Exception {
    KeyValueTemplate kv = new KeyValueTemplate(hzKeyValueAdaptorJoinImmediate());
    return kv;/*from   ww w . ja va 2  s  . co  m*/

}

From source file:com.reactivetechnologies.platform.Configurator.java

/**
 * Spring data key value operations over Hazelcast. This is the instance to use Hazelcast as a generic key value store using Spring data.
 * Does not start Hazelcast instance listeners (lifecycle / partition migration)
 * @return//from   w  w  w . j a va  2s  . c  om
 * @throws Exception
 */
@Bean
@Primary
public KeyValueTemplate kvtemplate() throws Exception {
    KeyValueTemplate kv = new KeyValueTemplate(hzKeyValueAdaptor());
    return kv;

}

From source file:com.reactivetechnologies.platform.Configurator.java

/**
 * Spring data key value operations over Hazelcast. This is the instance to use Hazelcast as a generic key value store using Spring data.
 * Force start Hazelcast instance listeners (lifecycle / partition migration)
 * @return/*from w  w w  .  j av a 2 s .c  o  m*/
 * @throws Exception
 */
@Bean
@Qualifier("kvTemplateJoinImmediate")
public KeyValueTemplate kvtemplateAndJoin() throws Exception {
    KeyValueTemplate kv = new KeyValueTemplate(hzKeyValueAdaptorJoinImmediate());
    return kv;

}