public class QueueWrapper extends Object implements Queue, Sink, Serializable
| Modifier and Type | Field and Description |
|---|---|
(package private) backtype.storm.task.OutputCollector |
collector |
(package private) static org.slf4j.Logger |
log |
(package private) String |
name |
private static long |
serialVersionUID
The unique class ID
|
| Constructor and Description |
|---|
QueueWrapper(backtype.storm.task.OutputCollector collector,
String name) |
private static final long serialVersionUID
static org.slf4j.Logger log
final backtype.storm.task.OutputCollector collector
final String name
public QueueWrapper(backtype.storm.task.OutputCollector collector,
String name)
public String getId()
getId in interface SinkgetId in interface SourceSink.getId()public boolean write(Data item) throws Exception
write in interface SinkExceptionSink.write(stream.Data)public void close()
throws Exception
public boolean write(Collection<Data> data) throws Exception
public void setId(String id)
setId in interface SinksetId in interface SourceSink.setId(java.lang.String)public void init()
throws Exception
public int clear()
clear in interface BarrelBarrel.clear()public Data read() throws Exception
read in interface SourceExceptionSource.read()public void setSize(Integer limit)
setSize in interface QueueQueue.setSize(java.lang.Integer)public Integer getSize()
getSize in interface QueueQueue.getSize()Copyright © 2013. All Rights Reserved.