public final class LongLinkedBlockingQueue extends Object implements LongBlockingQueue
LongBlockingQueue with a linked list.| Constructor and Description |
|---|
LongLinkedBlockingQueue(com.hazelcast.internal.memory.MemoryAllocator malloc,
int capacity,
long nullValue) |
LongLinkedBlockingQueue(com.hazelcast.internal.memory.MemoryAllocator malloc,
long nullValue) |
| Modifier and Type | Method and Description |
|---|---|
int |
capacity() |
void |
clear() |
void |
consume(LongConsumer consumer) |
void |
dispose() |
boolean |
isEmpty() |
LongIterator |
iterator() |
long |
nullItem() |
boolean |
offer(long value) |
boolean |
offer(long value,
long timeout,
TimeUnit unit) |
long |
peek() |
long |
poll() |
long |
poll(long timeout,
TimeUnit unit) |
void |
put(long value) |
int |
remainingCapacity() |
int |
size() |
long |
take() |
String |
toString() |
public LongLinkedBlockingQueue(com.hazelcast.internal.memory.MemoryAllocator malloc,
long nullValue)
public LongLinkedBlockingQueue(com.hazelcast.internal.memory.MemoryAllocator malloc,
int capacity,
long nullValue)
public boolean offer(long value,
long timeout,
TimeUnit unit)
throws InterruptedException
offer in interface LongBlockingQueueInterruptedExceptionpublic void put(long value)
throws InterruptedException
put in interface LongBlockingQueueInterruptedExceptionpublic long poll(long timeout,
TimeUnit unit)
throws InterruptedException
poll in interface LongBlockingQueueInterruptedExceptionpublic long take()
throws InterruptedException
take in interface LongBlockingQueueInterruptedExceptionpublic void consume(LongConsumer consumer)
consume in interface LongBlockingQueuepublic int remainingCapacity()
remainingCapacity in interface LongQueuepublic void dispose()
dispose in interface com.hazelcast.nio.Disposablepublic LongIterator iterator()
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.