T
- 読み込まれるオブジェクトの型 public class SynchronizedItemStreamReader<T> extends java.lang.Object implements ItemStreamReader<T>, org.springframework.beans.factory.InitializingBean
コンストラクターと説明 |
---|
SynchronizedItemStreamReader() |
修飾子と型 | メソッドと説明 |
---|---|
void | afterPropertiesSet() |
void | close() ストリームの動作にリソースが必要な場合、ここで破棄する必要があります。 |
void | open(ExecutionContext executionContext) 提供された ExecutionContext のストリームを開きます。 |
T | read() これは、 delegate の読み取りメソッドに委譲します |
void | setDelegate(ItemStreamReader<T> delegate) |
void | update(ExecutionContext executionContext) オープン中に提供された実行コンテキストが保存されようとしていることを示します。 |
public void setDelegate(ItemStreamReader<T> delegate)
@Nullable public T read() throws java.lang.Exception, UnexpectedInputException, ParseException, NonTransientResourceException
delegate
の読み取りメソッドに委譲します ItemReader<T>
の read
null
ParseException
- 現在のレコードの解析に問題がある場合 (しかし、次のものはまだ有効かもしれません)NonTransientResourceException
- 基礎となるリソースに致命的な例外がある場合。この例外をスローした後、実装は後続の read 呼び出しから null を返すように努める必要があります。UnexpectedInputException
- 入力データに未分類の問題がある場合。潜在的に一時的であると想定します。後続の読み取り呼び出しは成功する可能性があります。java.lang.Exception
- 特定のエラーがない場合。public void close()
ItemStream
ItemStream
の close
public void open(ExecutionContext executionContext)
ItemStream
ExecutionContext
のストリームを開きます。ItemStream
の open
executionContext
- 現在のステップの ExecutionContext
再起動時のステップの最後の実行からの executionContext になります。public void update(ExecutionContext executionContext)
ItemStream
ItemStream
の update
executionContext
- 更新される public void afterPropertiesSet() throws java.lang.Exception
org.springframework.beans.factory.InitializingBean
の afterPropertiesSet
java.lang.Exception