mqlight / java-mqlight

This Java package provides the high-level API by which you can interact with the MQ Light runtime.
Apache License 2.0
10 stars 9 forks source link

Add SendOptions.retainLink to allow SenderLink to be closed after use #18

Closed leachbj closed 9 years ago

leachbj commented 9 years ago

The SendOptions.retainLink is now used to determine if the SenderLink is retained after sending the outbound message. By default the Link will be retained to avoid re-creating the Link on subsequent messages to the same destination. Setting the value to false is useful for 'one-off' topics to allow the Link to be closed and resources released.

dnwe commented 9 years ago

:+1: many thanks for this @leachbj