Update storm编程模型.md

This commit is contained in:
heibaiying 2019-04-15 16:07:27 +08:00 committed by GitHub
parent 88260dd6a3
commit 36f3477d6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,8 +77,9 @@ public interface ISpout extends Serializable {
void deactivate();
/**
* 这是一个核心方法主要通过在此方法中调用collector将tuples发送给下一个接收器这个方法必须是非阻塞的。 * nextTuple/ack/fail/是在同一个线程中执行的所以不用考虑线程安全方面。当没有tuples发出时应该
* 让nextTuple休眠sleep一下以免浪费CPU。
* 这是一个核心方法主要通过在此方法中调用collector将tuples发送给下一个接收器这个方法必须是非阻塞的。
* nextTuple/ack/fail/是在同一个线程中执行的所以不用考虑线程安全方面。当没有tuples发出时应该让nextTuple
* 休眠(sleep)一下以免浪费CPU。
*/
void nextTuple();