public abstract class AbstractTopicQueue<T> extends Object implements TopicQueue<T>
| 限定符和类型 | 字段和说明 |
|---|---|
protected List<QueueListener<T>> |
listeners |
| 构造器和说明 |
|---|
AbstractTopicQueue() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addListener(QueueListener<T> listener) |
protected void |
onMessage(QueueContext<T> context) |
void |
removeListener(QueueListener<T> listener) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, clearAsync, contains, containsAsync, isEmpty, isEmptyAsync, name, offer, offerAsync, remove, removeAll, removeAllAsync, removeAsync, removeIf, size, sizeAsyncforEach, iterator, spliteratorprotected final List<QueueListener<T>> listeners
public void addListener(@Nonnull
QueueListener<T> listener)
addListener 在接口中 TopicQueue<T>public void removeListener(@Nonnull
QueueListener<T> listener)
removeListener 在接口中 TopicQueue<T>protected void onMessage(@Nonnull
QueueContext<T> context)
Copyright © 2024. All rights reserved.