mirror of https://github.com/apache/activemq.git
Adds a method to allow for sending a receipt on disconnect send.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1355553 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b7a1883b4b
commit
1e18cf2d71
|
@ -137,7 +137,14 @@ public class StompConnection {
|
|||
}
|
||||
|
||||
public void disconnect() throws Exception {
|
||||
disconnect(null);
|
||||
}
|
||||
|
||||
public void disconnect(String receiptId) throws Exception {
|
||||
StompFrame frame = new StompFrame("DISCONNECT");
|
||||
if (receiptId != null && !receiptId.isEmpty()) {
|
||||
frame.getHeaders().put(Stomp.Headers.RECEIPT_REQUESTED, receiptId);
|
||||
}
|
||||
sendFrame(frame.format());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue