クラス ChunkMonitor
java.lang.ObjectSE
org.springframework.batch.item.ItemStreamSupport
org.springframework.batch.core.step.item.ChunkMonitor
- 実装されたすべてのインターフェース:
ItemStream
最後に成功したコミットと、入力チャンクに対して行われた更新との間のオフセットデータを管理します。
ThreadLocal
SE を使用して状態を管理し、呼び出し元とラップされた ItemStream
の間を調整する必要があるため、シングルスレッドステップでのみ機能します。- 導入:
- 2.0
- 作成者:
- Dave Syer, Mahmoud Ben Hassine
ネストされたクラスのサマリー
コンストラクターのサマリー
メソッドのサマリー
修飾子と型メソッド説明void
close()
ノーオペレーション。int
void
void
open
(ExecutionContext executionContext) ノーオペレーション。void
registerItemStream
(ItemStream stream) void
void
setChunkSize
(int chunkSize) void
setItemReader
(ItemReader<?> reader) void
update
(ExecutionContext executionContext) 空のExecutionContext
を返します。クラス org.springframework.batch.item.ItemStreamSupport から継承されたメソッド
getExecutionContextKey, getName, setExecutionContextName, setName
コンストラクターの詳細
ChunkMonitor
public ChunkMonitor()
メソッドの詳細
registerItemStream
- パラメーター:
stream
- 設定するストリーム
setItemReader
- パラメーター:
reader
- 設定するリーダー
incrementOffset
public void incrementOffset()getOffset
public int getOffset()resetOffset
public void resetOffset()setChunkSize
public void setChunkSize(int chunkSize) close
クラスからコピーされた説明:ItemStreamSupport
ノーオペレーション。- 次で指定:
- インターフェース
ItemStream
のclose
- オーバーライド:
- クラス
ItemStreamSupport
のclose
- 例外:
ItemStreamException
- 関連事項:
open
クラスからコピーされた説明:ItemStreamSupport
ノーオペレーション。- 次で指定:
- インターフェース
ItemStream
のopen
- オーバーライド:
- クラス
ItemStreamSupport
のopen
- パラメーター:
executionContext
- 現在のステップのExecutionContext
。再起動時のステップの最後の実行からの executionContext になります。- 例外:
ItemStreamException
- 関連事項:
update
クラスからコピーされた説明:ItemStreamSupport
空のExecutionContext
を返します。- 次で指定:
- インターフェース
ItemStream
のupdate
- オーバーライド:
- クラス
ItemStreamSupport
のupdate
- パラメーター:
executionContext
- 更新される- 例外:
ItemStreamException
- 関連事項: