|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface PartitionReducer
PartitionReducer provides unit of work demarcation across partitions. It is not a JTA transaction; no resources are enlisted. Rather, it provides transactional flow semantics to facilitate finalizing merge or compensation logic.
| Nested Class Summary | |
|---|---|
static class |
PartitionReducer.PartitionStatus
|
| Method Summary | |
|---|---|
void |
afterPartitionedStepCompletion(PartitionReducer.PartitionStatus status)
The afterPartitionedStepCompletion method receives control at the end of a partition processing. |
void |
beforePartitionedStepCompletion()
The beforePartitionedStepCompletion method receives control at the end of partitioned step processing. |
void |
beginPartitionedStep()
The beginPartitionedStep method receives control at the start of partition processing. |
void |
rollbackPartitionedStep()
The rollbackPartitionedStep method receives control if the runtime is rolling back a partitioned step. |
| Method Detail |
|---|
void beginPartitionedStep()
throws Exception
Exception - is thrown if an error occurs.
void beforePartitionedStepCompletion()
throws Exception
Exception - is thrown if an error occurs.
void rollbackPartitionedStep()
throws Exception
Exception - is thrown if an error occurs.
void afterPartitionedStepCompletion(PartitionReducer.PartitionStatus status)
throws Exception
status - specifies the outcome of the partitioned step. Values are
"COMMIT" or "ROLLBACK".
Exception - is thrown if an error occurs.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||