Extreme.SharedSubscription (extreme v1.1.2)

View Source

This module contains functions shared between Extreme.Subscription and Extreme.ReadingSubscription.

Summary

Functions

Calls subscriber with {:on_event, event}, expecting :ok as result in order to apply backpressure.

Executes fun function for decoding response and responds on that message.

Sends subscription request and waits for positive response. Returns {:ok, subscription_confirmation}.

Sends unsubscribe "fire and forget" request to EventStoreDB.

Functions

on_event(subscriber, event, ack_timeout)

Calls subscriber with {:on_event, event}, expecting :ok as result in order to apply backpressure.

process_push(fun, state)

Executes fun function for decoding response and responds on that message.

subscribe(state)

Sends subscription request and waits for positive response. Returns {:ok, subscription_confirmation}.

unsubscribe(state)

Sends unsubscribe "fire and forget" request to EventStoreDB.