-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from pyeremenko/v3
Resolve V3 inconsistency
- Loading branch information
Showing
7 changed files
with
310 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/main/java/io/iron/ironmq/SubscribedMessageOptions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package io.iron.ironmq; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* The Message class represents a message retrieved from an IronMQ queue. | ||
*/ | ||
public class SubscribedMessageOptions extends MessageOptions { | ||
@SerializedName("subscriber_name") | ||
protected String subscriberName; | ||
|
||
public SubscribedMessageOptions() { | ||
} | ||
|
||
public SubscribedMessageOptions(String reservationId, String subscriberName) { | ||
super(reservationId); | ||
this.subscriberName = subscriberName; | ||
} | ||
|
||
public SubscribedMessageOptions(String id, String reservationId, String subscriberName) { | ||
super(id, reservationId); | ||
this.subscriberName = subscriberName; | ||
} | ||
|
||
public SubscribedMessageOptions(String id, String reservationId, Long timeout, String subscriberName) { | ||
super(id, reservationId, timeout); | ||
this.subscriberName = subscriberName; | ||
} | ||
|
||
/** | ||
* Returns the name of Message's Subscriber. | ||
*/ | ||
public String getSubscriberName() { | ||
return subscriberName; | ||
} | ||
|
||
/** | ||
* Sets the name of Message's Subscriber. | ||
*/ | ||
public void setSubscriberName(String subscriberName) { | ||
this.subscriberName = subscriberName; | ||
} | ||
} |
Oops, something went wrong.