类 ProducerImpl.OpSendMsgQueue
java.lang.Object
org.apache.pulsar.client.impl.ProducerImpl.OpSendMsgQueue
- 所有已实现的接口:
Iterable<ProducerImpl.OpSendMsg>
- 封闭类:
- ProducerImpl<T>
protected static class ProducerImpl.OpSendMsgQueue
extends Object
implements Iterable<ProducerImpl.OpSendMsg>
Queue implementation that is used as the pending messages queue.
This implementation postpones adding of new OpSendMsg entries that happen
while the forEach call is in progress. This is needed for preventing
ConcurrentModificationExceptions that would occur when the forEach action
calls the add method via a callback in user code.
This queue is not thread safe.
-
构造器详细资料
-
OpSendMsgQueue
protected OpSendMsgQueue()
-
-
方法详细资料
-
forEach
- 指定者:
forEach在接口中Iterable<ProducerImpl.OpSendMsg>
-
add
-
clear
public void clear() -
remove
public void remove() -
peek
-
messagesCount
public int messagesCount() -
iterator
- 指定者:
iterator在接口中Iterable<ProducerImpl.OpSendMsg>
-