backtype.storm.transactional
Interface ITransactionalSpout.Emitter<X>

All Known Subinterfaces:
ICommitterTransactionalSpout.Emitter
All Known Implementing Classes:
OpaquePartitionedTransactionalSpoutExecutor.Emitter
Enclosing interface:
ITransactionalSpout<T>

public static interface ITransactionalSpout.Emitter<X>


Method Summary
 void cleanupBefore(java.math.BigInteger txid)
          Any state for transactions prior to the provided transaction id can be safely cleaned up, so this method should clean up that state.
 void close()
          Release any resources held by this emitter.
 void emitBatch(TransactionAttempt tx, X coordinatorMeta, BatchOutputCollector collector)
          Emit a batch for the specified transaction attempt and metadata for the transaction.
 

Method Detail

emitBatch

void emitBatch(TransactionAttempt tx,
               X coordinatorMeta,
               BatchOutputCollector collector)
Emit a batch for the specified transaction attempt and metadata for the transaction. The metadata was created by the Coordinator in the initializeTranaction method. This method must always emit the same batch of tuples across all tasks for the same transaction id. The first field of all emitted tuples must contain the provided TransactionAttempt.


cleanupBefore

void cleanupBefore(java.math.BigInteger txid)
Any state for transactions prior to the provided transaction id can be safely cleaned up, so this method should clean up that state.


close

void close()
Release any resources held by this emitter.