Package org.apache.druid.frame.channel
Class BlockingQueueFrameChannel
- java.lang.Object
-
- org.apache.druid.frame.channel.BlockingQueueFrameChannel
-
public class BlockingQueueFrameChannel extends Object
In-memory channel backed by a limited-capacityDeque
. Instances of this class provide aReadableFrameChannel
throughreadable()
, and aWritableFrameChannel
throughwritable()
. Instances of this class are used by a single writer and single reader. The writer and reader may run concurrently.
-
-
Constructor Summary
Constructors Constructor Description BlockingQueueFrameChannel(int maxQueuedFrames)
Create a channel with a particular buffer size (expressed in number of frames).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BlockingQueueFrameChannel
minimal()
Create a channel that buffers one frame.ReadableFrameChannel
readable()
Returns the readable side of this channel.WritableFrameChannel
writable()
Returns the writable side of this channel.
-
-
-
Method Detail
-
writable
public WritableFrameChannel writable()
Returns the writable side of this channel.
-
readable
public ReadableFrameChannel readable()
Returns the readable side of this channel.
-
minimal
public static BlockingQueueFrameChannel minimal()
Create a channel that buffers one frame. This is the smallest possible queue size.
-
-