public static interface ITridentSpout.BatchCoordinator<X>
Modifier and Type | Method and Description |
---|---|
void |
close()
Release any resources from this coordinator.
|
X |
initializeTransaction(long txid,
X prevMetadata,
X currMetadata)
Create metadata for this particular transaction id which has never been emitted before.
|
boolean |
isReady(long txid)
hint to Storm if the spout is ready for the transaction id.
|
void |
success(long txid)
This attempt committed successfully, so all state for this commit and before can be safely cleaned up.
|
X initializeTransaction(long txid, X prevMetadata, X currMetadata)
The metadata is stored in Zookeeper.
Storm uses JSON encoding to store the metadata. Only simple types such as numbers, booleans, strings, lists, and maps should be used.
txid
- The id of the transaction.prevMetadata
- The metadata of the previous transactioncurrMetadata
- The metadata for this transaction the last time it was initialized. null if this is the first attemptvoid success(long txid)
txid
- transaction id that completedboolean isReady(long txid)
txid
- the id of the transactionvoid close()
Copyright © 2023 The Apache Software Foundation. All rights reserved.