public class CompositeItemStream extends java.lang.Object implements ItemStream
ItemStream that delegates to a list of other streams.| Constructor and Description |
|---|
CompositeItemStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Broadcast the call to close.
|
void |
open(ExecutionContext executionContext)
Broadcast the call to open.
|
void |
register(ItemStream stream)
Register a
ItemStream as one of the interesting providers under
the provided key. |
void |
setStreams(ItemStream[] streams)
Public setter for the
ItemStreams. |
void |
update(ExecutionContext executionContext)
Simple aggregate
ExecutionContext provider for the contributions
registered under the given key. |
public void setStreams(ItemStream[] streams)
ItemStreams.streams - array of ItemStream.public void register(ItemStream stream)
ItemStream as one of the interesting providers under
the provided key.stream - an instance of ItemStream to be added to the list of streams.public void update(ExecutionContext executionContext)
ExecutionContext provider for the contributions
registered under the given key.update in interface ItemStreamexecutionContext - to be updatedItemStream.update(ExecutionContext)public void close()
throws ItemStreamException
close in interface ItemStreamItemStreamException - thrown if one of the ItemStreams in
the list fails to close. This is a sequential operation so all itemStreams
in the list after the one that failed to close will remain open.public void open(ExecutionContext executionContext) throws ItemStreamException
open in interface ItemStreamexecutionContext - current step's ExecutionContext. Will be the
executionContext from the last run of the step on a restart.ItemStreamException - thrown if one of the ItemStreams in
the list fails to open. This is a sequential operation so all itemStreams
in the list after the one that failed to open will not be opened.