public final class LongArrayBlockingQueue extends Object implements LongBlockingQueue
LongBlockingQueue with an off-heap array.| Constructor and Description |
|---|
LongArrayBlockingQueue(com.hazelcast.internal.memory.MemoryAllocator memoryAllocator,
int capacity,
long nullItem) |
| 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 LongArrayBlockingQueue(com.hazelcast.internal.memory.MemoryAllocator memoryAllocator,
int capacity,
long nullItem)
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 © 2020 Hazelcast, Inc.. All Rights Reserved.