public class MemoryTopicQueue<T> extends AbstractBlockingQueue<T>
DESTROY, executor, STARTED, STARTING, status, STOPPEDlisteners| 构造器和说明 |
|---|
MemoryTopicQueue(String name) |
MemoryTopicQueue(String name,
BlockingQueue<T> queue) |
MemoryTopicQueue(String name,
BlockingQueue<T> queue,
Executor executor) |
MemoryTopicQueue(String name,
Executor executor) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear() |
CompletionStage<Void> |
clearAsync() |
boolean |
contains(T value) |
CompletionStage<Boolean> |
containsAsync(T value) |
boolean |
isEmpty() |
CompletionStage<Boolean> |
isEmptyAsync() |
Iterator<T> |
iterator() |
String |
name() |
boolean |
offer(T value) |
CompletionStage<Boolean> |
offerAsync(T value) |
boolean |
remove(T value) |
boolean |
removeAll(Collection<? extends T> values) |
CompletionStage<Boolean> |
removeAllAsync(Collection<? extends T> values) |
CompletionStage<Boolean> |
removeAsync(T value) |
List<? extends T> |
removeIf(Predicate<T> predicate) |
int |
size() |
CompletionStage<Integer> |
sizeAsync() |
protected T |
take() |
addListener, close, removeListener, start, stoponMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic MemoryTopicQueue(@Nonnull
String name)
public MemoryTopicQueue(@Nonnull
String name,
BlockingQueue<T> queue)
public MemoryTopicQueue(@Nonnull
String name,
BlockingQueue<T> queue,
@Nonnull
Executor executor)
@Nonnull public String name()
public int size()
public CompletionStage<Integer> sizeAsync()
public boolean isEmpty()
public CompletionStage<Boolean> isEmptyAsync()
public boolean offer(@Nonnull
T value)
public CompletionStage<Boolean> offerAsync(@Nonnull T value)
public void clear()
public CompletionStage<Void> clearAsync()
public boolean remove(@Nonnull
T value)
public CompletionStage<Boolean> removeAsync(@Nonnull T value)
public boolean removeAll(@Nonnull
Collection<? extends T> values)
public CompletionStage<Boolean> removeAllAsync(@Nonnull Collection<? extends T> values)
public boolean contains(@Nonnull
T value)
public CompletionStage<Boolean> containsAsync(@Nonnull T value)
Copyright © 2024. All rights reserved.