public class GemfireItemWriterBuilder<K,V>
extends java.lang.Object
GemfireItemWriter
GemfireItemWriterBuilder
Constructor and Description |
---|
GemfireItemWriterBuilder() |
Modifier and Type | Method and Description |
---|---|
GemfireItemWriter<K,V> |
build()
Validates and builds a
GemfireItemWriter . |
GemfireItemWriterBuilder<K,V> |
delete(boolean delete)
Indicates if the items being passed to the writer are to be saved or removed from
the data store.
|
GemfireItemWriterBuilder<K,V> |
itemKeyMapper(org.springframework.core.convert.converter.Converter<V,K> itemKeyMapper)
Set the
Converter to use to derive the key from the item. |
GemfireItemWriterBuilder<K,V> |
template(org.springframework.data.gemfire.GemfireTemplate template)
Establishes the GemfireTemplate the writer should use.
|
public GemfireItemWriterBuilder<K,V> template(org.springframework.data.gemfire.GemfireTemplate template)
template
- the GemfireTemplate
to set.GemfireItemWriter.setTemplate(GemfireTemplate)
public GemfireItemWriterBuilder<K,V> itemKeyMapper(org.springframework.core.convert.converter.Converter<V,K> itemKeyMapper)
Converter
to use to derive the key from the item.itemKeyMapper
- the Converter to use.KeyValueItemWriter.setItemKeyMapper(Converter)
public GemfireItemWriterBuilder<K,V> delete(boolean delete)
delete
- removal indicator.KeyValueItemWriter.setDelete(boolean)
public GemfireItemWriter<K,V> build()
GemfireItemWriter
.GemfireItemWriter