Skip to content

Java SDK

Interact with Diffusion from within your Java application using our most fully-featured client library. Synchronous and asynchronous APIs for topic subscription, publishing, and messaging as well as advanced server management features.

JavaFull API Documentation (opens in new tab)JavaCode examples (GitHub) (opens in new tab) Java SDK in the Diffusion manual (opens in new tab)Java SDK - Download bundled client JAR (opens in new tab)

Installation from Maven Central

Our Java client is published on Maven central for easy installation.

Maven

xml
<dependency>
  <groupId>com.diffusiondata.diffusion</groupId>
  <artifactId>diffusion-client</artifactId>
  <version>6.12.0</version>
</dependency>

Gradle

groovy
compile 'com.diffusiondata.diffusion:diffusion-client:6.12.0'

Installation from DiffusionData repository

If you do not wish to use Maven central, we also provide our own Maven repository.

Note

When using our Maven repository, packages are published with the groupId com.pushtechnology.diffusion, for legacy reasons.

Maven

xml
<repositories>
  <repository>
    <id>push-repository</id>
    <url>https://download.diffusiondata.com/maven/</url>
  </repository>
</repositories>
xml
<dependency>
  <groupId>com.pushtechnology.diffusion</groupId>
  <artifactId>diffusion-client</artifactId>
  <version>6.12.0</version>
</dependency>

Gradle

xml
repositories {
  maven {
    url "https://download.diffusiondata.com/maven/"
  }
}
groovy
compile 'com.pushtechnology.diffusion:diffusion-client:6.12.0'

Bundled version

The artifactId diffusion-client-with-dependencies can be used in place of diffusion-client in the previous examples. This version of the SDK includes all of its dependencies bundled into a single JAR file.

Alternatively, download the client JAR directly using the links above.