- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPublishMessage.java
More file actions
Latest commit
20 lines (17 loc) · 535 Bytes
/
Copy pathPublishMessage.java
File metadata and controls
20 lines (17 loc) · 535 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/**
* Created by sameerraghuram on 4/22/17.
*/
publicclassPublishMessageextendsMessage{
StringEXCHANGE_NAME;
StringQUEUE_NAME;
StringPUBLISH_MESSAGE;
publicPublishMessage(StringexchangeName, StringqueueName, Stringmessage){
super(Consts.REQ_ADD_MESSGAE);
this.QUEUE_NAME = queueName;
this.EXCHANGE_NAME = exchangeName;
this.PUBLISH_MESSAGE = message;
}
publicPublishMessage(StringqueueName, Stringmessage){
this("default", queueName, message);
}
}