forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementation of ReceiveBySequenceNumber and Complete, Abandon, Defe…
…r, DeadLetter on messages receive by sequence number (#9) * Chaning directory structure to align maven standard directory structure. Also changes to pom.xml files to align Maven standard build process like running tests. * Removing an unwanted file that was accidentally checked in. * Implemented Peek and PeekBatch functionality. Added some tests. * Implementation of ReceiveBySequenceNumber and Complete,Abandon,Defer,DeadLetter of messages received by sequence numbers.
- Loading branch information
Showing
13 changed files
with
600 additions
and
104 deletions.
There are no files selected for viewing
235 changes: 182 additions & 53 deletions
235
azure-servicebus/src/main/java/com/microsoft/azure/servicebus/BrokeredMessageReceiver.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
24 changes: 24 additions & 0 deletions
24
...vicebus/src/main/java/com/microsoft/azure/servicebus/primitives/MessageWithLockToken.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,24 @@ | ||
package com.microsoft.azure.servicebus.primitives; | ||
|
||
import java.util.UUID; | ||
|
||
import org.apache.qpid.proton.message.Message; | ||
|
||
public class MessageWithLockToken { | ||
private final Message message; | ||
private final UUID lockToken; | ||
|
||
public MessageWithLockToken(Message message, UUID lockToken) | ||
{ | ||
this.message = message; | ||
this.lockToken = lockToken; | ||
} | ||
|
||
public Message getMessage() { | ||
return message; | ||
} | ||
|
||
public UUID getLockToken() { | ||
return lockToken; | ||
} | ||
} |
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
Oops, something went wrong.