Rill v0.10.4 Rill.Messaging.Handler behaviour View Source
Link to this section Summary
Link to this section Functions
Link to this function
handle(session, handler, message_data) View Source
Link to this function
handle(session, handler, dictionary, message_data)
View Source
handle(session, handler, dictionary, message_data)
View Source
handle(
session :: Rill.Session.t(),
handler :: module(),
dictionary :: %Rill.Messaging.Message.Dictionary{type_names: term()},
message_data :: %Rill.MessageStore.MessageData.Read{
data: term(),
global_position: term(),
id: term(),
metadata: term(),
position: term(),
stream_name: term(),
time: term(),
type: term()
}
) :: no_return()
handle(
session :: Rill.Session.t(),
handler :: module(),
dictionary :: %Rill.Messaging.Message.Dictionary{type_names: term()},
messages_data :: Enumerable.t()
) :: no_return()
handle( session :: Rill.Session.t(), handler :: module(), dictionary :: %Rill.Messaging.Message.Dictionary{type_names: term()}, message_data :: %Rill.MessageStore.MessageData.Read{ data: term(), global_position: term(), id: term(), metadata: term(), position: term(), stream_name: term(), time: term(), type: term() } ) :: no_return()
handle( session :: Rill.Session.t(), handler :: module(), dictionary :: %Rill.Messaging.Message.Dictionary{type_names: term()}, messages_data :: Enumerable.t() ) :: no_return()
Link to this section Callbacks
Link to this callback
handle(message, session)
View Source
(optional)
handle(message, session)
View Source
(optional)
handle(message :: struct(), session :: Rill.Session.t()) :: no_return()
handle(message :: struct(), session :: Rill.Session.t()) :: no_return()