public interface ItemStream
Marker interface defining a contract for periodically storing state and restoring from that state should an error occur.
Modifier and Type | Method and Description |
---|---|
void |
close()
If any resources are needed for the stream to operate they need to be destroyed here.
|
void |
open(ExecutionContext executionContext)
Open the stream for the provided
ExecutionContext . |
void |
update(ExecutionContext executionContext)
Indicates that the execution context provided during open is about to be saved.
|
void open(ExecutionContext executionContext) throws ItemStreamException
ExecutionContext
.IllegalArgumentException
- if context is nullItemStreamException
void update(ExecutionContext executionContext) throws ItemStreamException
executionContext
- to be updatedIllegalArgumentException
- if executionContext is null.ItemStreamException
void close() throws ItemStreamException
ItemStreamException
Copyright © 2014 Pivotal. All rights reserved.