Skip to content

A high performance asynchronous wrapper arround the official Mixpanel Java API client

Notifications You must be signed in to change notification settings

lukewhiting/async-mixpanel-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

What Is This? Build Status

This repo hosts a wrapper around the official Mixpanel Java client.

Why?

The official Mixpanel client falls down in a few ways. First it relies a lot on null parameters. When something is optional you just don't pass it in. However this can be confusing and can make code more complicated than is required so this wrapper provides full methods for every valid combination of parameters.

Second the official client is synchronous adding delay to your code. We live in a multicore world these days so this wrapper offloads that sensing delay to another thread and deals with queueing and scheduling for you.

How?

To add the dependency to Maven:

<dependency>
  <groupId>com.brandwatch.mixpanel</groupId>
  <artifactId>mixpanel-client</artifactId>
  <version>${mixpanel.version}</version>
</dependency>

You can find the latest version number on the releases page.

ClientConfig config = new ClientConfigBuilder()
                          .maxBatchSize(1000)
                          .maxBatchTimeInSeconds(10)
                          .projectToken("aaabbbccc111222333")
                          .build();

MixpanelClient client = new MixpanelClient(config);

client.event("my-event-key");

Requirements

Java 6 or above

Building The Project

mvn clean package

About

A high performance asynchronous wrapper arround the official Mixpanel Java API client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%