C# Class IronIO.IronMQ

Iron.io Message Queue API
Afficher le fichier Open project: odeits/IronTools

Méthodes publiques

Méthode Description
Clear ( ) : void

Clears a Queue regardless of message status

Count ( ) : int

Gets the size of the queue

Delete ( Message msg ) : void

Delete a message from the queue

Delete ( string id ) : void

Delete a message from the queue

Get ( int max ) : IList

Retrieves up to "max" messages from the queue

Get ( ) : Message

Retrieves up to "max" messages from the queue

IronMQ ( string name, string projectId = null, string token = null ) : System

Initializes a new instance of the IronMQ class.

Push ( IEnumerable msgs, long timeout, long delay, long expires_in ) : void

Pushes messages onto the queue with an optional timeout

Push ( string msg, long timeout ) : void

Pushes a message onto the queue with a timeout

Queues ( string projectId = null, string token = null, int page, int perPage = 30 ) : IList

Get a list of all queues in a project. By default, 30 queues are listed at a time. To see more, use the page parameter or the per_page parameter. Up to 100 queues may be listed on a single page.

Method Details

Clear() public méthode

Clears a Queue regardless of message status
Thrown if the IronMQ service returns a status other than 200 OK. Thrown if there is an error accessing the IronMQ server.
public Clear ( ) : void
Résultat void

Count() public méthode

Gets the size of the queue
public Count ( ) : int
Résultat int

Delete() public méthode

Delete a message from the queue
Thrown if the IronMQ service returns a status other than 200 OK. Thrown if there is an error accessing the IronMQ server.
public Delete ( Message msg ) : void
msg IronIO.Data.Message Message to be deleted
Résultat void

Delete() public méthode

Delete a message from the queue
Thrown if the IronMQ service returns a status other than 200 OK. Thrown if there is an error accessing the IronMQ server.
public Delete ( string id ) : void
id string Message Identifier
Résultat void

Get() public méthode

Retrieves up to "max" messages from the queue
Thrown if the IronMQ service returns a status other than 200 OK. Thrown if there is an error accessing the IronMQ server.
public Get ( int max ) : IList
max int the count of messages to return, default is 1
Résultat IList

Get() public méthode

Retrieves up to "max" messages from the queue
Thrown if the IronMQ service returns a status other than 200 OK. Thrown if there is an error accessing the IronMQ server.
public Get ( ) : Message
Résultat IronIO.Data.Message

IronMQ() public méthode

Initializes a new instance of the IronMQ class.
public IronMQ ( string name, string projectId = null, string token = null ) : System
name string Queue name
projectId string Project identifier available from the HUD
token string Token available from the HUD
Résultat System

Push() public méthode

Pushes messages onto the queue with an optional timeout
Thrown if the IronMQ service returns a status other than 200 OK. Thrown if there is an error accessing the IronMQ server.
public Push ( IEnumerable msgs, long timeout, long delay, long expires_in ) : void
msgs IEnumerable Messages to be pushed
timeout long The timeout of the messages to push.
delay long Delay in seconds
expires_in long Expires in seconds
Résultat void

Push() public méthode

Pushes a message onto the queue with a timeout
Thrown if the IronMQ service returns a status other than 200 OK. Thrown if there is an error accessing the IronMQ server.
public Push ( string msg, long timeout ) : void
msg string Message to be pushed.
timeout long The timeout of the message to push.
Résultat void

Queues() public static méthode

Get a list of all queues in a project. By default, 30 queues are listed at a time. To see more, use the page parameter or the per_page parameter. Up to 100 queues may be listed on a single page.
public static Queues ( string projectId = null, string token = null, int page, int perPage = 30 ) : IList
projectId string Project identifier available from the HUD
token string Token available from the HUD
page int Page index (zero based)
perPage int Number of results per page
Résultat IList