类 CollectorContainer
- java.lang.Object
-
- com.datarangers.asynccollector.CollectorContainer
-
public class CollectorContainer extends Object
- 作者:
- hTangle
-
-
字段概要
字段 修饰符和类型 字段 说明 static ConcurrentHashMap<String,ConcurrentHashMap<String,LongAdder>>SEND_HISTORY
-
构造器概要
构造器 构造器 说明 CollectorContainer(CollectorQueue messageQueue)
-
-
-
字段详细资料
-
SEND_HISTORY
public static final ConcurrentHashMap<String,ConcurrentHashMap<String,LongAdder>> SEND_HISTORY
-
-
构造器详细资料
-
CollectorContainer
public CollectorContainer(CollectorQueue messageQueue)
-
-
方法详细资料
-
produce
public boolean produce(Message message) throws InterruptedException
-
consume
public List<Message> consume() throws InterruptedException
-
consume
public List<Message> consume(int waitTimeMs) throws InterruptedException
-
size
public int size()
-
getMessageQueue
public CollectorQueue getMessageQueue()
-
-