public class BoltOutputCollectorImpl extends Object implements IOutputCollector
Constructor and Description |
---|
BoltOutputCollectorImpl(BoltExecutor executor,
Task taskData,
Random random,
boolean isEventLoggers,
boolean ackingEnabled,
boolean isDebug) |
Modifier and Type | Method and Description |
---|---|
void |
ack(Tuple input) |
List<Integer> |
emit(String streamId,
Collection<Tuple> anchors,
List<Object> tuple)
Returns the task ids that received the tuples.
|
void |
emitDirect(int taskId,
String streamId,
Collection<Tuple> anchors,
List<Object> tuple) |
void |
fail(Tuple input) |
void |
flush() |
void |
reportError(Throwable error) |
void |
resetTimeout(Tuple input) |
public BoltOutputCollectorImpl(BoltExecutor executor, Task taskData, Random random, boolean isEventLoggers, boolean ackingEnabled, boolean isDebug)
public List<Integer> emit(String streamId, Collection<Tuple> anchors, List<Object> tuple)
IOutputCollector
Returns the task ids that received the tuples.
emit
in interface IOutputCollector
public void emitDirect(int taskId, String streamId, Collection<Tuple> anchors, List<Object> tuple)
emitDirect
in interface IOutputCollector
public void ack(Tuple input)
ack
in interface IOutputCollector
public void fail(Tuple input)
fail
in interface IOutputCollector
public void resetTimeout(Tuple input)
resetTimeout
in interface IOutputCollector
public void flush()
flush
in interface IOutputCollector
public void reportError(Throwable error)
reportError
in interface IErrorReporter
Copyright © 2020 The Apache Software Foundation. All rights reserved.