Class SupplierSource<R>

    • Method Detail

      • nextTuple

        public void nextTuple()
        Description copied from interface: ISpout
        When this method is called, Heron is requesting that the Spout emit tuples to the output collector. This method should be non-blocking, so if the Spout has no tuples to emit, this method should return. nextTuple, ack, and fail are all called in a tight loop in a single thread in the spout task. When there are no tuples to emit, it is courteous to have nextTuple sleep for a short amount of time (like a single millisecond) so as not to waste too much CPU.