public class MemorySafeLinkedBlockingQueue<E> extends LinkedBlockingQueue<E>
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
THE_256_MB |
| 构造器和说明 |
|---|
MemorySafeLinkedBlockingQueue() |
MemorySafeLinkedBlockingQueue(int maxFreeMemory) |
MemorySafeLinkedBlockingQueue(int maxFreeMemory,
double maxPercentage) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
hasRemainedMemory() |
boolean |
offer(E e) |
boolean |
offer(E e,
long timeout,
TimeUnit unit) |
void |
put(E e) |
clear, contains, drainTo, drainTo, iterator, peek, poll, poll, remainingCapacity, remove, size, spliterator, take, toArray, toArray, toStringadd, addAll, element, removecontainsAll, isEmpty, removeAll, retainAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddaddAll, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, streampublic MemorySafeLinkedBlockingQueue()
public MemorySafeLinkedBlockingQueue(int maxFreeMemory)
public MemorySafeLinkedBlockingQueue(int maxFreeMemory,
double maxPercentage)
public boolean hasRemainedMemory()
public void put(E e) throws InterruptedException
put 在接口中 BlockingQueue<E>put 在类中 LinkedBlockingQueue<E>InterruptedExceptionpublic boolean offer(E e, long timeout, TimeUnit unit) throws InterruptedException
offer 在接口中 BlockingQueue<E>offer 在类中 LinkedBlockingQueue<E>InterruptedExceptionpublic boolean offer(E e)
offer 在接口中 BlockingQueue<E>offer 在接口中 Queue<E>offer 在类中 LinkedBlockingQueue<E>Copyright © 2025 fossc. All rights reserved.