Skip to content

Commit

Permalink
Basic README
Browse files Browse the repository at this point in the history
  • Loading branch information
iced committed Feb 1, 2012
1 parent 74fb02b commit 9953796
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
@@ -0,0 +1,30 @@
IronMQ Java Client
----------------

Getting Started
===============

**Import** IronMQ client package:

import io.iron.ironmq.*;

**Initialize** a client and get a queue object:

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

**Push** a message on the queue:

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

**Pop** a message off the queue:

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 10 minutes.)

**Delete** a message from the queue:

queue.deleteMessage(msg);

0 comments on commit 9953796

Please sign in to comment.