Class GemfireItemWriterBuilder<K,V>
java.lang.Object
org.springframework.batch.item.data.builder.GemfireItemWriterBuilder<K,V>
A builder implementation for the
GemfireItemWriter
- Since:
- 4.0
- Author:
- Glenn Renfro
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Validates and builds aGemfireItemWriter
.delete
(boolean delete) Indicates if the items being passed to the writer are to be saved or removed from the data store.itemKeyMapper
(org.springframework.core.convert.converter.Converter<V, K> itemKeyMapper) Set theConverter
to use to derive the key from the item.template
(org.springframework.data.gemfire.GemfireTemplate template) Establishes the GemfireTemplate the writer should use.
-
Constructor Details
-
GemfireItemWriterBuilder
public GemfireItemWriterBuilder()
-
-
Method Details
-
template
public GemfireItemWriterBuilder<K,V> template(org.springframework.data.gemfire.GemfireTemplate template) Establishes the GemfireTemplate the writer should use.- Parameters:
template
- theGemfireTemplate
to set.- Returns:
- The current instance of the builder.
- See Also:
-
itemKeyMapper
public GemfireItemWriterBuilder<K,V> itemKeyMapper(org.springframework.core.convert.converter.Converter<V, K> itemKeyMapper) Set theConverter
to use to derive the key from the item.- Parameters:
itemKeyMapper
- the Converter to use.- Returns:
- The current instance of the builder.
- See Also:
-
delete
Indicates if the items being passed to the writer are to be saved or removed from the data store. If set to false (default), the items will be saved. If set to true, the items will be removed.- Parameters:
delete
- removal indicator.- Returns:
- The current instance of the builder.
- See Also:
-
build
Validates and builds aGemfireItemWriter
.- Returns:
- a
GemfireItemWriter
-