Class GemfireItemWriter<K,V>
java.lang.Object
org.springframework.batch.item.KeyValueItemWriter<K,V>
org.springframework.batch.item.data.GemfireItemWriter<K,V>
- All Implemented Interfaces:
ItemWriter<V>,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
SpELMappingGemfireItemWriter
An
ItemWriter that stores items in GemFire- Since:
- 2.2
- Author:
- David Turanski
-
Field Summary
Fields inherited from class org.springframework.batch.item.KeyValueItemWriter
delete, itemKeyMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinit()afterPropertiesSet() hookvoidsetTemplate(org.springframework.data.gemfire.GemfireTemplate gemfireTemplate) protected voidwriteKeyValue(K key, V value) Subclasses implement this method to write each item to key value storeMethods inherited from class org.springframework.batch.item.KeyValueItemWriter
afterPropertiesSet, flush, setDelete, setItemKeyMapper, write
-
Constructor Details
-
GemfireItemWriter
public GemfireItemWriter()
-
-
Method Details
-
setTemplate
public void setTemplate(org.springframework.data.gemfire.GemfireTemplate gemfireTemplate) - Parameters:
gemfireTemplate- theGemfireTemplateto set
-
writeKeyValue
Description copied from class:KeyValueItemWriterSubclasses implement this method to write each item to key value store- Specified by:
writeKeyValuein classKeyValueItemWriter<K,V> - Parameters:
key- the keyvalue- the item
-
init
protected void init()Description copied from class:KeyValueItemWriterafterPropertiesSet() hook- Specified by:
initin classKeyValueItemWriter<K,V>
-