How to Stream Events in Java

An open-source SDK for using Initial State in Java projects can be found at  This SDK was written by Alon Kadury.

Java implementation to API

    // create API - on current thread
    API account = new API("MyAccessKey");

    // create API that will use threadpool of 5 threads to send messages
    API threadedAccount = new API("MyAccessKey", 5);

    // create bucket
    Bucket bucket = new Bucket("myBucket", "Test bucket");

    // create data
    Data data = new Data("Tempreture", 37);
    account.createData(bucket, data);

    // create bulk data
    account.createBulkData(bucket, new Data[]{data, data});

    // close

Feedback and Knowledge Base