MVN

uk.co.boundedbuffer : low-latency-primitive-concurrent-queues

Maven & Gradle

Feb 24, 2014
67 stars

Low Latency Primitive Concurrent Queues · An low latency, lock free, primitive bounded blocking queue backed by an int[]. This class mimics the interface of {@linkplain java.util.concurrent.BlockingQueue BlockingQueue}, however works with primitive ints rather than objects, so is unable to actually implement the BlockingQueue. This class takes advantage of the Unsafe.putOrderedObject, which allows us to create non-blocking code with guaranteed writes. These writes will not be re-orderd by instruction reordering. Under the covers it uses the faster store-store barrier, rather than the the slower store-load barrier, which is used when doing a volatile write. One of the trade off with this improved performance is we are limited to a single producer, single consumer.

<dependency>
    <groupId>uk.co.boundedbuffer</groupId>
    <artifactId>low-latency-primitive-concurrent-queues</artifactId>
    <version>1.0.0</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of uk.co.boundedbuffer : low-latency-primitive-concurrent-queues to add to Maven or Gradle - Latest Versions:

  • Latest Stable: 1.0.0

All Versions

Choose a version of uk.co.boundedbuffer : low-latency-primitive-concurrent-queues to add to Maven or Gradle - All Versions:

Version Vulnerabilities Updated
1.0.x
low-latency-primitive-concurrent-queues-1.0.0

How to add a dependency to Maven

Add the following uk.co.boundedbuffer : low-latency-primitive-concurrent-queues maven dependency to the pom.xml file with your favorite IDE (IntelliJ / Eclipse / Netbeans):

<dependency>
    <groupId>uk.co.boundedbuffer</groupId>
    <artifactId>low-latency-primitive-concurrent-queues</artifactId>
    <version>1.0.0</version>
</dependency>

How to add a dependency to Gradle

Gradle Groovy DSL: Add the following uk.co.boundedbuffer : low-latency-primitive-concurrent-queues gradle dependency to your build.gradle file:

implementation 'uk.co.boundedbuffer:low-latency-primitive-concurrent-queues:1.0.0'

Gradle Kotlin DSL: Add the following uk.co.boundedbuffer : low-latency-primitive-concurrent-queues gradle kotlin dependency to your build.gradle.kts file:

implementation("uk.co.boundedbuffer:low-latency-primitive-concurrent-queues:1.0.0")

How to add a dependency to SBT Scala

SBT Scala: Add the following uk.co.boundedbuffer : low-latency-primitive-concurrent-queues sbt scala dependency to your build.sbt file:

libraryDependencies += "uk.co.boundedbuffer" % "low-latency-primitive-concurrent-queues" % "1.0.0"