public class MemoryDelayQueue<T> extends AbstractBlockingQueue<T> implements DelayedQueue<T>
DESTROY, executor, STARTED, STARTING, status, STOPPEDlisteners| 构造器和说明 |
|---|
MemoryDelayQueue(String name,
Executor executor,
RateLimiter rateLimiter) |
MemoryDelayQueue(String name,
RateLimiter rateLimiter) |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
boolean |
offer(T value,
Duration delay) |
CompletionStage<Boolean> |
offerAsync(T value) |
CompletionStage<Boolean> |
offerAsync(T value,
Duration delay) |
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, waitaddListener, removeListenerforEach, spliteratorpublic MemoryDelayQueue(@Nonnull
String name,
RateLimiter rateLimiter)
public MemoryDelayQueue(@Nonnull
String name,
@Nonnull
Executor executor,
RateLimiter rateLimiter)
@Nonnull public String name()
name 在接口中 TopicQueue<T>public int size()
size 在接口中 TopicQueue<T>public CompletionStage<Integer> sizeAsync()
sizeAsync 在接口中 TopicQueue<T>public boolean isEmpty()
isEmpty 在接口中 TopicQueue<T>public CompletionStage<Boolean> isEmptyAsync()
isEmptyAsync 在接口中 TopicQueue<T>public boolean offer(@Nonnull
T value)
offer 在接口中 TopicQueue<T>public CompletionStage<Boolean> offerAsync(@Nonnull T value)
offerAsync 在接口中 TopicQueue<T>public boolean offer(@Nonnull
T value,
@Nonnull
Duration delay)
offer 在接口中 DelayedQueue<T>public CompletionStage<Boolean> offerAsync(@Nonnull T value, @Nonnull Duration delay)
offerAsync 在接口中 DelayedQueue<T>public void clear()
clear 在接口中 TopicQueue<T>public CompletionStage<Void> clearAsync()
clearAsync 在接口中 TopicQueue<T>public boolean remove(@Nonnull
T value)
remove 在接口中 TopicQueue<T>public CompletionStage<Boolean> removeAsync(@Nonnull T value)
removeAsync 在接口中 TopicQueue<T>public boolean removeAll(@Nonnull
Collection<? extends T> values)
removeAll 在接口中 TopicQueue<T>public CompletionStage<Boolean> removeAllAsync(@Nonnull Collection<? extends T> values)
removeAllAsync 在接口中 TopicQueue<T>public List<? extends T> removeIf(@Nonnull Predicate<T> predicate)
removeIf 在接口中 TopicQueue<T>public boolean contains(@Nonnull
T value)
contains 在接口中 TopicQueue<T>public CompletionStage<Boolean> containsAsync(@Nonnull T value)
containsAsync 在接口中 TopicQueue<T>Copyright © 2024. All rights reserved.