public interface State
IStatefulBolt
) or managed by the the
individual components themselves.Modifier and Type | Method and Description |
---|---|
void |
commit()
Persist the current state.
|
void |
commit(long txid)
Commit a previously prepared transaction.
|
void |
prepareCommit(long txid)
Invoked by the framework to prepare a transaction for commit.
|
void |
rollback()
Rollback a prepared transaction to the previously committed state.
|
void prepareCommit(long txid)
The same txid can be prepared again, but the next txid cannot be prepared when previous one is not yet committed.
txid
- the transaction idvoid commit(long txid)
txid
- the transaction idvoid commit()
void rollback()