aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md4
-rw-r--r--src/com/github/ivarref/yoltq.clj4
-rw-r--r--src/com/github/ivarref/yoltq/report_queue.clj2
3 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index 675fa9a..dda9b47 100644
--- a/README.md
+++ b/README.md
@@ -473,12 +473,12 @@ Added multicast support for `datomic.api/tx-report-queue`:
@(d/transact conn [{:db/doc "new-data"}])
; Stop the queue:
-(yq/stop-multicaster-id! conn :q-id-3)
+(yq/stop-multicast-consumer-id! conn :q-id-3)
=> true
; The multicaster thread will send `:end` and the consumer thread will then print "Time to exit. Goodbye!".
; if the queue is already stopped (or never was started), `stop-multicaster...` functions will return false:
-(yq/stop-multicaster-id! conn :already-stopped-queue-or-typo)
+(yq/stop-multicast-consumer-id! conn :already-stopped-queue-or-typo)
=> false
; Stop all queues for all connections:
diff --git a/src/com/github/ivarref/yoltq.clj b/src/com/github/ivarref/yoltq.clj
index 298b9d5..45f2051 100644
--- a/src/com/github/ivarref/yoltq.clj
+++ b/src/com/github/ivarref/yoltq.clj
@@ -402,7 +402,7 @@
(assert (boolean? send-end-token?))
(rq/get-tx-report-queue-multicast! conn id send-end-token?)))
-(defn stop-multicaster-id!
+(defn stop-multicast-consumer-id!
"Stop forwarding reports from datomic.api/tx-report-queue to the queue identified by `conn` and `id`.
If this is the last report destination for the given `conn`, the multicaster thread will exit.
Repeated calls are no-op.
@@ -414,7 +414,7 @@
Return `false` if the queue does not exist."
[conn id]
(assert (instance? Connection conn))
- (rq/stop-multicaster-id! conn id))
+ (rq/stop-multicast-consumer-id! conn id))
(defn stop-multicaster!
"Stop forwarding reports from datomic.api/tx-report-queue to any queues belonging to `conn`.
diff --git a/src/com/github/ivarref/yoltq/report_queue.clj b/src/com/github/ivarref/yoltq/report_queue.clj
index c3fd383..b3685b9 100644
--- a/src/com/github/ivarref/yoltq/report_queue.clj
+++ b/src/com/github/ivarref/yoltq/report_queue.clj
@@ -334,7 +334,7 @@
(not= (all-queues old)
(all-queues new)))
-(defn stop-multicaster-id! [conn id]
+(defn stop-multicast-consumer-id! [conn id]
(assert (instance? Connection conn))
(let [did-remove? (atom nil)]
(locking consumer-state-lock