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 ,
@@ -170,7 +172,7 @@ attach_sender_link_sync(Session, Name, Target) ->
170172% % @doc Synchronously attach a link on 'Session'.
171173% % This is a convenience function that awaits attached event
172174% % for the link before returning.
173- -spec attach_sender_link_sync (pid (), binary (), binary (),
175+ -spec attach_sender_link_sync (pid (), binary (), terminus_address (),
174176 snd_settle_mode ()) ->
175177 {ok , link_ref ()} | link_timeout .
176178attach_sender_link_sync (Session , Name , Target , SettleMode ) ->
@@ -179,7 +181,7 @@ attach_sender_link_sync(Session, Name, Target, SettleMode) ->
179181% % @doc Synchronously attach a link on 'Session'.
180182% % This is a convenience function that awaits attached event
181183% % for the link before returning.
182- -spec attach_sender_link_sync (pid (), binary (), binary (),
184+ -spec attach_sender_link_sync (pid (), binary (), terminus_address (),
183185 snd_settle_mode (), terminus_durability ()) ->
184186 {ok , link_ref ()} | link_timeout .
185187attach_sender_link_sync (Session , Name , Target , SettleMode , Durability ) ->
@@ -199,7 +201,7 @@ attach_sender_link_sync(Session, Name, Target, SettleMode, Durability) ->
199201% % This is asynchronous and will notify completion of the attach request to the
200202% % caller using an amqp10_event of the following format:
201203% % {amqp10_event, {link, LinkRef, attached | {detached, Why}}}
202- -spec attach_sender_link (pid (), binary (), binary ()) -> {ok , link_ref ()}.
204+ -spec attach_sender_link (pid (), binary (), terminus_address ()) -> {ok , link_ref ()}.
203205attach_sender_link (Session , Name , Target ) ->
204206 % mixed should work with any type of msg
205207 attach_sender_link (Session , Name , Target , mixed ).
@@ -208,7 +210,7 @@ attach_sender_link(Session, Name, Target) ->
208210% % This is asynchronous and will notify completion of the attach request to the
209211% % caller using an amqp10_event of the following format:
210212% % {amqp10_event, {link, LinkRef, attached | {detached, Why}}}
211- -spec attach_sender_link (pid (), binary (), binary (),
213+ -spec attach_sender_link (pid (), binary (), terminus_address (),
212214 snd_settle_mode ()) ->
213215 {ok , link_ref ()}.
214216attach_sender_link (Session , Name , Target , SettleMode ) ->
@@ -218,7 +220,7 @@ attach_sender_link(Session, Name, Target, SettleMode) ->
218220% % This is asynchronous and will notify completion of the attach request to the
219221% % caller using an amqp10_event of the following format:
220222% % {amqp10_event, {link, LinkRef, attached | {detached, Why}}}
221- -spec attach_sender_link (pid (), binary (), binary (),
223+ -spec attach_sender_link (pid (), binary (), terminus_address (),
222224 snd_settle_mode (), terminus_durability ()) ->
223225 {ok , link_ref ()}.
224226attach_sender_link (Session , Name , Target , SettleMode , Durability ) ->
0 commit comments