类 GemfireItemWriterBuilder<K,V>
- java.lang.Object
- org.springframework.batch.item.data.builder.GemfireItemWriterBuilder<K,V>
public class GemfireItemWriterBuilder<K,V> extends java.lang.Object
A builder implementation for theGemfireItemWriter
- 从以下版本开始:
- 4.0
- 作者:
- Glenn Renfro
- 另请参阅:
GemfireItemWriterBuilder
构造器概要
构造器 构造器 说明 GemfireItemWriterBuilder()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 GemfireItemWriter<K,V>
build()
Validates and builds aGemfireItemWriter
.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 theConverter
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.
构造器详细资料
GemfireItemWriterBuilder
public GemfireItemWriterBuilder()
方法详细资料
template
public GemfireItemWriterBuilder<K,V> template(org.springframework.data.gemfire.GemfireTemplate template)
Establishes the GemfireTemplate the writer should use.- 参数:
template
- theGemfireTemplate
to set.- 返回:
- The current instance of the builder.
- 另请参阅:
GemfireItemWriter.setTemplate(GemfireTemplate)
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.- 参数:
itemKeyMapper
- the Converter to use.- 返回:
- The current instance of the builder.
- 另请参阅:
KeyValueItemWriter.setItemKeyMapper(Converter)
delete
public 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. If set to false (default), the items will be saved. If set to true, the items will be removed.- 参数:
delete
- removal indicator.- 返回:
- The current instance of the builder.
- 另请参阅:
KeyValueItemWriter.setDelete(boolean)
build
public GemfireItemWriter<K,V> build()
Validates and builds aGemfireItemWriter
.- 返回:
- a
GemfireItemWriter