public interface NioQueue
This is a simplified subset of BlockingQueue
.
This interface is considered a SPI and is likely to move between
minor and patch releases.
NioParams
Modifier and Type | Method and Description |
---|---|
boolean |
isEmpty()
Returns
true if the queue contains no element. |
boolean |
offer(WriteRequest writeRequest)
Enqueue a frame, block if the queue is full.
|
WriteRequest |
poll()
Retrieves and removes the head of this queue,
or returns
null if this queue is empty. |
int |
size()
Get the current size of the queue.
|
boolean offer(WriteRequest writeRequest) throws InterruptedException
writeRequest
- InterruptedException
int size()
WriteRequest poll()
null
if this queue is empty.null
if this queue is emptyboolean isEmpty()
true
if the queue contains no element.true
if the queue contains no elementCopyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.