public interface IncrementalTask extends Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
allowSliceRetry(boolean abandon) |
void |
cleanup()
Clean up and release any resources claimed in prepare.
|
boolean |
isDone() |
void |
jobCompleted(Status status)
A job completed callback to allow resource cleanup and compaction of the finalized state.
|
void |
prepare()
Called immediately before run.
|
void |
run()
Runs this task.
|
void prepare()
RejectRequestException
- when run cannot be called at this time.void run()
ShardFailureException
- when shard should be retriedRuntimeException
- when a slice should be retriedvoid cleanup()
boolean isDone()
boolean allowSliceRetry(boolean abandon)
abandon
- true if a retry is due to an abandoned lock.void jobCompleted(Status status)
status
- the status of the jobCopyright © 2015 Google. All rights reserved.