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 ,
@@ -168,7 +170,7 @@ attach_sender_link_sync(Session, Name, Target) ->
168
170
% % @doc Synchronously attach a link on 'Session'.
169
171
% % This is a convenience function that awaits attached event
170
172
% % for the link before returning.
171
- -spec attach_sender_link_sync (pid (), binary (), binary (),
173
+ -spec attach_sender_link_sync (pid (), binary (), terminus_address (),
172
174
snd_settle_mode ()) ->
173
175
{ok , link_ref ()} | link_timeout .
174
176
attach_sender_link_sync (Session , Name , Target , SettleMode ) ->
@@ -177,7 +179,7 @@ attach_sender_link_sync(Session, Name, Target, SettleMode) ->
177
179
% % @doc Synchronously attach a link on 'Session'.
178
180
% % This is a convenience function that awaits attached event
179
181
% % for the link before returning.
180
- -spec attach_sender_link_sync (pid (), binary (), binary (),
182
+ -spec attach_sender_link_sync (pid (), binary (), terminus_address (),
181
183
snd_settle_mode (), terminus_durability ()) ->
182
184
{ok , link_ref ()} | link_timeout .
183
185
attach_sender_link_sync (Session , Name , Target , SettleMode , Durability ) ->
@@ -195,7 +197,7 @@ attach_sender_link_sync(Session, Name, Target, SettleMode, Durability) ->
195
197
% % This is asynchronous and will notify completion of the attach request to the
196
198
% % caller using an amqp10_event of the following format:
197
199
% % {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 ()}.
199
201
attach_sender_link (Session , Name , Target ) ->
200
202
% mixed should work with any type of msg
201
203
attach_sender_link (Session , Name , Target , mixed ).
@@ -204,7 +206,7 @@ attach_sender_link(Session, Name, Target) ->
204
206
% % This is asynchronous and will notify completion of the attach request to the
205
207
% % caller using an amqp10_event of the following format:
206
208
% % {amqp10_event, {link, LinkRef, attached | {detached, Why}}}
207
- -spec attach_sender_link (pid (), binary (), binary (),
209
+ -spec attach_sender_link (pid (), binary (), terminus_address (),
208
210
snd_settle_mode ()) ->
209
211
{ok , link_ref ()}.
210
212
attach_sender_link (Session , Name , Target , SettleMode ) ->
@@ -214,7 +216,7 @@ attach_sender_link(Session, Name, Target, SettleMode) ->
214
216
% % This is asynchronous and will notify completion of the attach request to the
215
217
% % caller using an amqp10_event of the following format:
216
218
% % {amqp10_event, {link, LinkRef, attached | {detached, Why}}}
217
- -spec attach_sender_link (pid (), binary (), binary (),
219
+ -spec attach_sender_link (pid (), binary (), terminus_address (),
218
220
snd_settle_mode (), terminus_durability ()) ->
219
221
{ok , link_ref ()}.
220
222
attach_sender_link (Session , Name , Target , SettleMode , Durability ) ->
0 commit comments