List of usage examples for org.springframework.data.keyvalue.core KeyValueTemplate KeyValueTemplate
public KeyValueTemplate(KeyValueAdapter adapter)
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; }