Reads items from a collection of resources sequentially. Ordering of resources is preserved between jobs runs (restartability support) using the provided comparer. More...
Public Member Functions | |
MultiResourceItemReader () | |
Default constructor. More... | |
override void | Open (ExecutionContext executionContext) |
Open resources. More... | |
override void | Close () |
Delegates to delegate stream. More... | |
override void | Update (ExecutionContext executionContext) |
Delegates to delegate stream. More... | |
override void | Flush () |
Delegates to delegate stream. More... | |
T | Read () |
Read from current resource. More... | |
Public Member Functions inherited from Summer.Batch.Infrastructure.Item.Util.ItemStreamSupport | |
string | GetExecutionContextKey (string key) |
Transform the given key to use the name of this instance as prefix. More... | |
virtual void | Dispose () |
Properties | |
IResourceAwareItemReaderItemStream< T > | Delegate [get, set] |
Delegate stream. More... | |
IResource[] | Resources [get, set] |
Collection of used resources. More... | |
bool | SaveState [get, set] |
Save state. More... | |
IComparer< IResource > | Comparer [get, set] |
Comparer. More... | |
bool | Strict [get, set] |
Strict mode indicator. More... | |
IResource | CurrentResource [get] |
Returns the current resource. More... | |
Properties inherited from Summer.Batch.Infrastructure.Item.Util.ItemStreamSupport | |
string | Name [set] |
The name of the component that will be used as prefix for keys in the execution context. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Summer.Batch.Infrastructure.Item.Util.ItemStreamSupport | |
virtual void | Dispose (bool disposing) |
Does the actual dipose, delegating to Close(); More... | |
Detailed Description
Reads items from a collection of resources sequentially. Ordering of resources is preserved between jobs runs (restartability support) using the provided comparer.
- Template Parameters
-
T
- Type Constraints
-
T : class
Constructor & Destructor Documentation
Default constructor.
Member Function Documentation
|
virtual |
Delegates to delegate stream.
Reimplemented from Summer.Batch.Infrastructure.Item.Util.ItemStreamSupport.
|
virtual |
Delegates to delegate stream.
Reimplemented from Summer.Batch.Infrastructure.Item.Util.ItemStreamSupport.
|
virtual |
Open resources.
- Parameters
-
executionContext
Reimplemented from Summer.Batch.Infrastructure.Item.Util.ItemStreamSupport.
T Summer.Batch.Infrastructure.Item.File.MultiResourceItemReader< T >.Read | ( | ) |
Read from current resource.
- Returns
|
virtual |
Delegates to delegate stream.
- Parameters
-
executionContext
Reimplemented from Summer.Batch.Infrastructure.Item.Util.ItemStreamSupport.
Property Documentation
|
getset |
Comparer.
|
get |
Returns the current resource.
|
getset |
Delegate stream.
|
getset |
Collection of used resources.
|
getset |
Save state.
|
getset |
Strict mode indicator.
The documentation for this class was generated from the following file:
- Summer.Batch.Infrastructure/Item/File/MultiResourceItemReader.cs