forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIMessageQueueClient.cs
More file actions
44 lines (39 loc) · 1.19 KB
/
IMessageQueueClient.cs
File metadata and controls
44 lines (39 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using System;
namespace ServiceStack.Messaging
{
public interface IMessageQueueClient
: IMessageProducer
{
/// <summary>
/// Publish the specified message into the durable queue @queueName
/// </summary>
/// <param name="queueName"></param>
/// <param name="messageBytes"></param>
void Publish(string queueName, byte[] messageBytes);
/// <summary>
/// Publish the specified message into the transient queue @queueName
/// </summary>
/// <param name="queueName"></param>
/// <param name="messageBytes"></param>
void Notify(string queueName, byte[] messageBytes);
/// <summary>
/// Synchronous blocking get.
/// </summary>
/// <param name="queueName"></param>
/// <param name="timeOut"></param>
/// <returns></returns>
byte[] Get(string queueName, TimeSpan? timeOut);
/// <summary>
/// Non blocking get message
/// </summary>
/// <param name="queueName"></param>
/// <returns></returns>
byte[] GetAsync(string queueName);
/// <summary>
/// Blocking wait for notifications on any of the supplied channels
/// </summary>
/// <param name="channelNames"></param>
/// <returns></returns>
string WaitForNotifyOnAny(params string[] channelNames);
}
}