final long endTime = System.currentTimeMillis() + (1000l * duration);
Random rand = new Random();
while (endTime > System.currentTimeMillis())
{
// Post the request, asynchronously
Con.executeAsync(new ProcedureCallback()
{
@Override
public void clientCallback(ClientResponse response) throws Exception
{
// Track the result of the request (Success, Failure)