47
47
48
48
-type terminus_durability () :: amqp10_client_session :terminus_durability ().
49
49
50
+ -type terminus_address () :: amqp10_client_session :terminus_address ().
50
51
-type target_def () :: amqp10_client_session :target_def ().
51
52
-type source_def () :: amqp10_client_session :source_def ().
52
53
64
65
snd_settle_mode / 0 ,
65
66
rcv_settle_mode / 0 ,
66
67
terminus_durability / 0 ,
68
+ terminus_address / 0 ,
67
69
target_def / 0 ,
68
70
source_def / 0 ,
69
71
attach_role / 0 ,
@@ -170,7 +172,7 @@ attach_sender_link_sync(Session, Name, Target) ->
170
172
% % @doc Synchronously attach a link on 'Session'.
171
173
% % This is a convenience function that awaits attached event
172
174
% % for the link before returning.
173
- -spec attach_sender_link_sync (pid (), binary (), binary (),
175
+ -spec attach_sender_link_sync (pid (), binary (), terminus_address (),
174
176
snd_settle_mode ()) ->
175
177
{ok , link_ref ()} | link_timeout .
176
178
attach_sender_link_sync (Session , Name , Target , SettleMode ) ->
@@ -179,7 +181,7 @@ attach_sender_link_sync(Session, Name, Target, SettleMode) ->
179
181
% % @doc Synchronously attach a link on 'Session'.
180
182
% % This is a convenience function that awaits attached event
181
183
% % for the link before returning.
182
- -spec attach_sender_link_sync (pid (), binary (), binary (),
184
+ -spec attach_sender_link_sync (pid (), binary (), terminus_address (),
183
185
snd_settle_mode (), terminus_durability ()) ->
184
186
{ok , link_ref ()} | link_timeout .
185
187
attach_sender_link_sync (Session , Name , Target , SettleMode , Durability ) ->
@@ -199,7 +201,7 @@ attach_sender_link_sync(Session, Name, Target, SettleMode, Durability) ->
199
201
% % This is asynchronous and will notify completion of the attach request to the
200
202
% % caller using an amqp10_event of the following format:
201
203
% % {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 ()}.
203
205
attach_sender_link (Session , Name , Target ) ->
204
206
% mixed should work with any type of msg
205
207
attach_sender_link (Session , Name , Target , mixed ).
@@ -208,7 +210,7 @@ attach_sender_link(Session, Name, Target) ->
208
210
% % This is asynchronous and will notify completion of the attach request to the
209
211
% % caller using an amqp10_event of the following format:
210
212
% % {amqp10_event, {link, LinkRef, attached | {detached, Why}}}
211
- -spec attach_sender_link (pid (), binary (), binary (),
213
+ -spec attach_sender_link (pid (), binary (), terminus_address (),
212
214
snd_settle_mode ()) ->
213
215
{ok , link_ref ()}.
214
216
attach_sender_link (Session , Name , Target , SettleMode ) ->
@@ -218,7 +220,7 @@ attach_sender_link(Session, Name, Target, SettleMode) ->
218
220
% % This is asynchronous and will notify completion of the attach request to the
219
221
% % caller using an amqp10_event of the following format:
220
222
% % {amqp10_event, {link, LinkRef, attached | {detached, Why}}}
221
- -spec attach_sender_link (pid (), binary (), binary (),
223
+ -spec attach_sender_link (pid (), binary (), terminus_address (),
222
224
snd_settle_mode (), terminus_durability ()) ->
223
225
{ok , link_ref ()}.
224
226
attach_sender_link (Session , Name , Target , SettleMode , Durability ) ->
0 commit comments