Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 37 lines (23 sloc) 0.952 kb

IronMQ Java Client

Getting Started

Download the IronMQ jar. Or build from source with Apache Buildr:

buildr package

The .jar file will appear under the target directory.

The API is documented here.

The Basics

Initialize a client and get a queue object:

Client client = new Client("my project", "my token", Cloud.IronAWSUSEast);
Queue queue = client.queue("my_queue");

Push a message on the queue:

queue.Push("Hello, world!");

Pop a message off the queue:

Message msg = queue.get();

When you pop/get a message from the queue, it will not be deleted. It will eventually go back onto the queue after a timeout if you don't delete it. (The default timeout is 60 seconds.)

Delete a message from the queue:

queue.deleteMessage(msg);
Something went wrong with that request. Please try again.