/**
* Example for using an unpooled client
* @throws BeanstalkException
*/
public static void clientExample() throws BeanstalkException {
BeanstalkClient client = new BeanstalkClient("localhost", 8010, "example");
log.info("Putting a job");
client.put(1l, 0, 5000, "this is some data".getBytes());
BeanstalkJob job = client.reserve(60);
log.info("GOt job: " + job);
client.deleteJob(job);
client.close(); //closes the connection
}