(create-topic {:keys [conn schema]}
topic
&
{:keys [key-type value-type index-key?]
:as opts
:or {key-type :bytea value-type :bytea index-key? false}})(ensure-topic {:keys [conn] :as config}
topic-name
&
{:keys [key-type value-type]
:as opts
:or {key-type :bytea value-type :bytea}})Fetch or create a topic. Returns the existing topic if it already exists with the same key-type and value-type. Throws if the topic exists but was created with different column types. Note: opts apply only at creation time and cannot be used to change an existing topic.
Fetch or create a topic. Returns the existing topic if it already exists with the same key-type and value-type. Throws if the topic exists but was created with different column types. Note: opts apply only at creation time and cannot be used to change an existing topic.
(fetch-records* {:keys [conn schema] :as config}
{:keys [topic group commit-mode] :as selection})(insert-records {:keys [conn conn-map schema] :as cfg}
topic
records
&
{:keys [serialize-key serialize-value] :as opts})(topic-subscriptions {:keys [conn] :as config})Returns all topics with their consumer group subscriptions nested under each
topic. Unlike list-subscriptions, every topic appears in the result even if
it has no subscribers.
Each entry is a map with:
Each subscription map contains the same keys as list-subscriptions (except
:topic, which is on the outer map):
Returns all topics with their consumer group subscriptions nested under each
topic. Unlike `list-subscriptions`, every topic appears in the result even if
it has no subscribers.
Each entry is a map with:
- :topic the topic name
- :subscriptions a vector of subscription maps (empty when no subscribers)
Each subscription map contains the same keys as `list-subscriptions` (except
:topic, which is on the outer map):
- :group consumer group id
- :offset last committed eid for this group
- :topic-eid highest eid available in the topic
- :lag number of unread records (topic-eid - offset)
- :updated-at java.time.Instant of the last offset commit (nil if never committed)
- :timestamp java.time.Instant of the last consumed record (nil if offset is 0)
- :topic-timestamp java.time.Instant of the latest record in the topic (nil if empty)
- :timestamp-lag java.time.Duration between subscription and topic timestamps (nil if either is nil)
- :processing-delay java.time.Duration from publish time to consumer commit for the most
recently consumed record (nil if either :updated-at or :timestamp is nil)(trim-topic {:keys [conn schema] :as config}
topic
&
{:keys [before-eid before-timestamp all? ignore-subscriptions?]
:or {ignore-subscriptions? false}})cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |