Package org.springframework.batch.item
Class ItemStreamSupport
java.lang.Object
org.springframework.batch.item.ItemStreamSupport
- All Implemented Interfaces:
ItemStream
- Direct Known Subclasses:
AbstractItemStreamItemReader
,AbstractItemStreamItemWriter
,ChunkMonitor
Empty method implementation of
ItemStream
.- Author:
- Dave Syer, Dean de Bree, Mahmoud Ben Hassine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Deprecated, for removal: This API element is subject to removal in a future version.getName()
Get the name of the componentvoid
open
(ExecutionContext executionContext) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favor ofItemStream.open(ExecutionContext)
()}.protected void
void
The name of the component which will be used as a stem for keys in theExecutionContext
.void
update
(ExecutionContext executionContext) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favor ofItemStream.update(ExecutionContext)
()}.
-
Constructor Details
-
ItemStreamSupport
public ItemStreamSupport()
-
-
Method Details
-
close
Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favor ofItemStream.close()
. Scheduled for removal in 5.2.No-op.- Specified by:
close
in interfaceItemStream
- See Also:
-
open
Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favor ofItemStream.open(ExecutionContext)
()}. Scheduled for removal in 5.2.No-op.- Specified by:
open
in interfaceItemStream
- Parameters:
executionContext
- current step'sExecutionContext
. Will be the executionContext from the last run of the step on a restart.- See Also:
-
update
Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favor ofItemStream.update(ExecutionContext)
()}. Scheduled for removal in 5.2.Return emptyExecutionContext
.- Specified by:
update
in interfaceItemStream
- Parameters:
executionContext
- to be updated- See Also:
-
setName
The name of the component which will be used as a stem for keys in theExecutionContext
. Subclasses should provide a default value, e.g. the short form of the class name.- Parameters:
name
- the name for the component
-
getName
Get the name of the component- Returns:
- the name of the component
-
setExecutionContextName
-
getExecutionContextKey
-
ItemStream.close()
.