public class SpoutOutputCollectorImpl extends Object implements ISpoutOutputCollector
Methods are not thread safe. Each thread expected to have a separate instance, or else synchronize externally
| Constructor and Description | 
|---|
SpoutOutputCollectorImpl(ISpout spout,
                        SpoutExecutor executor,
                        Task taskData,
                        MutableLong emittedCount,
                        boolean hasAckers,
                        Random random,
                        Boolean isEventLoggers,
                        Boolean isDebug,
                        RotatingMap<Long,TupleInfo> pending)  | 
| Modifier and Type | Method and Description | 
|---|---|
List<Integer> | 
emit(String streamId,
    List<Object> tuple,
    Object messageId)
Returns the task ids that received the tuples. 
 | 
void | 
emitDirect(int taskId,
          String streamId,
          List<Object> tuple,
          Object messageId)  | 
void | 
flush()  | 
long | 
getPendingCount()  | 
void | 
reportError(Throwable error)  | 
public SpoutOutputCollectorImpl(ISpout spout, SpoutExecutor executor, Task taskData, MutableLong emittedCount, boolean hasAckers, Random random, Boolean isEventLoggers, Boolean isDebug, RotatingMap<Long,TupleInfo> pending)
public List<Integer> emit(String streamId, List<Object> tuple, Object messageId)
ISpoutOutputCollectorReturns the task ids that received the tuples.
emit in interface ISpoutOutputCollectorpublic void emitDirect(int taskId,
                       String streamId,
                       List<Object> tuple,
                       Object messageId)
emitDirect in interface ISpoutOutputCollectorpublic void flush()
flush in interface ISpoutOutputCollectorpublic long getPendingCount()
getPendingCount in interface ISpoutOutputCollectorpublic void reportError(Throwable error)
reportError in interface IErrorReporterCopyright © 2022 The Apache Software Foundation. All rights reserved.