Java libraries for Circus.
NameDescriptionHardwareLibrary File
CircusJAVALib-1.0.0 Implements ReadValue and WriteValue in JAVA. Any running JAVA CircusJavaLib1.1.0.java
circusofthings.com.jar
CircusJavaLib1.1.0.zip
Java Specification
Java Examples

I made a class named IncreasingValue which is used to feed the Increasing value posted at Circus for test purposes.

package com.circusofthings.examples.javaclient;
import com.circusofthings.api.ver110.CircusLib;
import org.json.JSONObject;
public class IncreasingValue extends Thread
{
            private final String key;
            private final String token;
            private static final long FREC = 20000L;
            public IncreasingValue(String key, String token)
            {
                        this.key = key;
                        this.token = token;
            }
            public void run()
            {
                        CircusLib commands = new CircusLib(token);
                        double value = 0;
                        for (;;) {
                                    value++;
                                    if(value>1000){value=0;}
                                    JSONObject json = commands.writeValue(key, value);
                                    System.out.println(json.toString());
                                    try {
                                                   Thread.sleep(FREC);
                                    } catch (InterruptedException ex) {
                                                   Thread.currentThread().interrupt();
                                    }
                         }
            }
}

It can be run adding this two lines in your code:

IncreasingValue increasingValue = new IncreasingValue("3456", "your_token_here");
increasingValue.start();

Circus Experiments with JAVA

Basic Warwalking with a Raspberry