Package org.apache.storm.topology
Class BasicOutputCollector
java.lang.Object
org.apache.storm.topology.BasicOutputCollector
- All Implemented Interfaces:
IErrorReporter
,IBasicOutputCollector
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
emitDirect
(int taskId, String streamId, List<Object> tuple) void
emitDirect
(int taskId, List<Object> tuple) protected IOutputCollector
void
void
resetTimeout
(Tuple tuple) Resets the message timeout for any tuple trees to which the given tuple belongs.void
setContext
(Tuple inputTuple)
-
Constructor Details
-
BasicOutputCollector
-
-
Method Details
-
emit
- Specified by:
emit
in interfaceIBasicOutputCollector
-
emit
-
setContext
-
emitDirect
- Specified by:
emitDirect
in interfaceIBasicOutputCollector
-
emitDirect
-
resetTimeout
Resets the message timeout for any tuple trees to which the given tuple belongs. The timeout is reset to Config.TOPOLOGY_MESSAGE_TIMEOUT_SECS. Note that this is an expensive operation, and should be used sparingly.- Specified by:
resetTimeout
in interfaceIBasicOutputCollector
- Parameters:
tuple
- the tuple to reset timeout for
-
getOutputter
-
reportError
- Specified by:
reportError
in interfaceIErrorReporter
-