Java implementation to InitialState.com API
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main/java
LICENSE
README.md
pom.xml

README.md

initialState-java

Java implementation to InitialState.com 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");
    account.createBucket(bucket);

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

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

    // close
    account.terminate();
    threadedAccount.terminate();