Package org.apache.storm.spout
Interface ISpoutWaitStrategy
-
- All Known Implementing Classes:
NothingEmptyEmitStrategy,SleepSpoutWaitStrategy
public interface ISpoutWaitStrategyThe strategy a spout needs to use when its waiting. Waiting is triggered in one of two conditions:1. nextTuple emits no tuples 2. The spout has hit maxSpoutPending and can't emit any more tuples
The default strategy sleeps for one millisecond.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidemptyEmit(long streak)voidprepare(Map conf)
-
-
-
Method Detail
-
prepare
void prepare(Map conf)
-
emptyEmit
void emptyEmit(long streak)
-
-