public abstract class AbstractBlockingQueue<T> extends AbstractTopicQueue<T> implements Closeable
| 限定符和类型 | 字段和说明 |
|---|---|
protected static int |
DESTROY |
protected Executor |
executor |
protected static int |
STARTED |
protected static int |
STARTING |
protected AtomicInteger |
status |
protected static int |
STOPPED |
listeners| 限定符 | 构造器和说明 |
|---|---|
protected |
AbstractBlockingQueue(Executor executor,
RateLimiter rateLimiter) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addListener(QueueListener<T> listener) |
void |
close() |
void |
removeListener(QueueListener<T> listener) |
protected void |
start() |
protected void |
stop() |
protected abstract T |
take() |
onMessageclone, 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 static final int DESTROY
protected static final int STOPPED
protected static final int STARTING
protected static final int STARTED
protected final Executor executor
protected final AtomicInteger status
protected AbstractBlockingQueue(Executor executor, RateLimiter rateLimiter)
public void close()
close 在接口中 Closeableclose 在接口中 AutoCloseableprotected void start()
protected void stop()
public void addListener(@Nonnull
QueueListener<T> listener)
addListener 在接口中 TopicQueue<T>addListener 在类中 AbstractTopicQueue<T>public void removeListener(@Nonnull
QueueListener<T> listener)
removeListener 在接口中 TopicQueue<T>removeListener 在类中 AbstractTopicQueue<T>Copyright © 2024. All rights reserved.