4747
4848-type terminus_durability () :: amqp10_client_session :terminus_durability ().
4949
50+ -type terminus_address () :: amqp10_client_session :terminus_address ().
5051-type target_def () :: amqp10_client_session :target_def ().
5152-type source_def () :: amqp10_client_session :source_def ().
5253
6465 snd_settle_mode / 0 ,
6566 rcv_settle_mode / 0 ,
6667 terminus_durability / 0 ,
68+ terminus_address / 0 ,
6769 target_def / 0 ,
6870 source_def / 0 ,
6971 attach_role / 0 ,
@@ -168,7 +170,7 @@ attach_sender_link_sync(Session, Name, Target) ->
168170% % @doc Synchronously attach a link on 'Session'.
169171% % This is a convenience function that awaits attached event
170172% % for the link before returning.
171- -spec attach_sender_link_sync (pid (), binary (), binary (),
173+ -spec attach_sender_link_sync (pid (), binary (), terminus_address (),
172174 snd_settle_mode ()) ->
173175 {ok , link_ref ()} | link_timeout .
174176attach_sender_link_sync (Session , Name , Target , SettleMode ) ->
@@ -177,7 +179,7 @@ attach_sender_link_sync(Session, Name, Target, SettleMode) ->
177179% % @doc Synchronously attach a link on 'Session'.
178180% % This is a convenience function that awaits attached event
179181% % for the link before returning.
180- -spec attach_sender_link_sync (pid (), binary (), binary (),
182+ -spec attach_sender_link_sync (pid (), binary (), terminus_address (),
181183 snd_settle_mode (), terminus_durability ()) ->
182184 {ok , link_ref ()} | link_timeout .
183185attach_sender_link_sync (Session , Name , Target , SettleMode , Durability ) ->
@@ -195,7 +197,7 @@ attach_sender_link_sync(Session, Name, Target, SettleMode, Durability) ->
195197% % This is asynchronous and will notify completion of the attach request to the
196198% % caller using an amqp10_event of the following format:
197199% % {amqp10_event, {link, LinkRef, attached | {detached, Why}}}
198- -spec attach_sender_link (pid (), binary (), binary ()) -> {ok , link_ref ()}.
200+ -spec attach_sender_link (pid (), binary (), terminus_address ()) -> {ok , link_ref ()}.
199201attach_sender_link (Session , Name , Target ) ->
200202 % mixed should work with any type of msg
201203 attach_sender_link (Session , Name , Target , mixed ).
@@ -204,7 +206,7 @@ attach_sender_link(Session, Name, Target) ->
204206% % This is asynchronous and will notify completion of the attach request to the
205207% % caller using an amqp10_event of the following format:
206208% % {amqp10_event, {link, LinkRef, attached | {detached, Why}}}
207- -spec attach_sender_link (pid (), binary (), binary (),
209+ -spec attach_sender_link (pid (), binary (), terminus_address (),
208210 snd_settle_mode ()) ->
209211 {ok , link_ref ()}.
210212attach_sender_link (Session , Name , Target , SettleMode ) ->
@@ -214,7 +216,7 @@ attach_sender_link(Session, Name, Target, SettleMode) ->
214216% % This is asynchronous and will notify completion of the attach request to the
215217% % caller using an amqp10_event of the following format:
216218% % {amqp10_event, {link, LinkRef, attached | {detached, Why}}}
217- -spec attach_sender_link (pid (), binary (), binary (),
219+ -spec attach_sender_link (pid (), binary (), terminus_address (),
218220 snd_settle_mode (), terminus_durability ()) ->
219221 {ok , link_ref ()}.
220222attach_sender_link (Session , Name , Target , SettleMode , Durability ) ->
0 commit comments