|
63 | 63 |
|
64 | 64 | -spec(start/0 :: () -> 'ok'). |
65 | 65 | -spec(recover/0 :: () -> 'ok'). |
66 | | --spec(declare/4 :: (queue_name(), bool(), bool(), amqp_table()) -> |
| 66 | +-spec(declare/4 :: (queue_name(), boolean(), boolean(), amqp_table()) -> |
67 | 67 | amqqueue()). |
68 | 68 | -spec(lookup/1 :: (queue_name()) -> {'ok', amqqueue()} | not_found()). |
69 | 69 | -spec(with/2 :: (queue_name(), qfun(A)) -> A | not_found()). |
|
83 | 83 | {'error', 'in_use'} | |
84 | 84 | {'error', 'not_empty'}). |
85 | 85 | -spec(purge/1 :: (amqqueue()) -> qlen()). |
86 | | --spec(deliver/2 :: (pid(), delivery()) -> bool()). |
87 | | --spec(redeliver/2 :: (pid(), [{message(), bool()}]) -> 'ok'). |
| 86 | +-spec(deliver/2 :: (pid(), delivery()) -> boolean()). |
| 87 | +-spec(redeliver/2 :: (pid(), [{message(), boolean()}]) -> 'ok'). |
88 | 88 | -spec(requeue/3 :: (pid(), [msg_id()], pid()) -> 'ok'). |
89 | 89 | -spec(ack/4 :: (pid(), maybe(txn()), [msg_id()], pid()) -> 'ok'). |
90 | 90 | -spec(commit_all/2 :: ([pid()], txn()) -> ok_or_errors()). |
91 | 91 | -spec(rollback_all/2 :: ([pid()], txn()) -> ok_or_errors()). |
92 | 92 | -spec(notify_down_all/2 :: ([pid()], pid()) -> ok_or_errors()). |
93 | 93 | -spec(limit_all/3 :: ([pid()], pid(), pid() | 'undefined') -> ok_or_errors()). |
94 | 94 | -spec(claim_queue/2 :: (amqqueue(), pid()) -> 'ok' | 'locked'). |
95 | | --spec(basic_get/3 :: (amqqueue(), pid(), bool()) -> |
| 95 | +-spec(basic_get/3 :: (amqqueue(), pid(), boolean()) -> |
96 | 96 | {'ok', non_neg_integer(), msg()} | 'empty'). |
97 | 97 | -spec(basic_consume/8 :: |
98 | | - (amqqueue(), bool(), pid(), pid(), pid(), ctag(), bool(), any()) -> |
| 98 | + (amqqueue(), boolean(), pid(), pid(), pid(), ctag(), boolean(), any()) -> |
99 | 99 | 'ok' | {'error', 'queue_owned_by_another_connection' | |
100 | 100 | 'exclusive_consume_unavailable'}). |
101 | 101 | -spec(basic_cancel/4 :: (amqqueue(), pid(), ctag(), any()) -> 'ok'). |
102 | 102 | -spec(notify_sent/2 :: (pid(), pid()) -> 'ok'). |
103 | 103 | -spec(unblock/2 :: (pid(), pid()) -> 'ok'). |
104 | | --spec(internal_declare/2 :: (amqqueue(), bool()) -> amqqueue()). |
| 104 | +-spec(internal_declare/2 :: (amqqueue(), boolean()) -> amqqueue()). |
105 | 105 | -spec(internal_delete/1 :: (queue_name()) -> 'ok' | not_found()). |
106 | 106 | -spec(on_node_down/1 :: (erlang_node()) -> 'ok'). |
107 | 107 | -spec(pseudo_queue/2 :: (binary(), pid()) -> amqqueue()). |
|
0 commit comments