Rill v0.11.0 Rill.Consumer View Source
Link to this section Summary
Functions
:handlers:identifier:stream_name:poll_interval_milliseconds:batch_size:session:condition
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: %Rill.Consumer{
batch_size: pos_integer(),
condition: nil | term(),
handlers: [module()],
identifier: String.t(),
messages: [
%Rill.MessageStore.MessageData.Read{
data: term(),
global_position: term(),
id: term(),
metadata: term(),
position: term(),
stream_name: term(),
time: term(),
type: term()
}
],
poll_interval_milliseconds: pos_integer(),
position: pos_integer(),
session: nil | Rill.Session.t(),
stream_name: Rill.MessageStore.StreamName.t(),
timer_ref: nil | term()
}
t() :: %Rill.Consumer{
batch_size: pos_integer(),
condition: nil | term(),
handlers: [module()],
identifier: String.t(),
messages: [
%Rill.MessageStore.MessageData.Read{
data: term(),
global_position: term(),
id: term(),
metadata: term(),
position: term(),
stream_name: term(),
time: term(),
type: term()
}
],
poll_interval_milliseconds: pos_integer(),
position: pos_integer(),
session: nil | Rill.Session.t(),
stream_name: Rill.MessageStore.StreamName.t(),
timer_ref: nil | term()
}
Link to this section Functions
Link to this function
child_spec(opts, genserver_opts \\ []) View Source
:handlers:identifier:stream_name:poll_interval_milliseconds:batch_size:session:condition
Link to this function
dispatch(state, pid) View Source
Link to this function
fetch(state, pid) View Source
Link to this function
listen(state, pid) View Source
Link to this function
start_link(initial_state, opts \\ []) View Source
Link to this function