pipert.core.message_handlers¶
Module Contents¶
Classes¶
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
-
class
pipert.core.message_handlers.MessageHandler[source]¶ Bases:
abc.ABCHelper class that provides a standard way to create an ABC using inheritance.
-
abstract
receive(self, in_key)[source]¶ Receives the latest message from the message broker.
- Args:
in_key: the name of the queue/stream at which the relevant message is located.
-
abstract
read_next_msg(self, in_key)[source]¶ Reads the following message from the one that was last read, if no message has been read before, then read the last message in the message broker cannot read the same message twice.
- Args:
in_key: the name of the queue/stream at which the relevant message is located.
-
abstract
read_most_recent_msg(self, in_key)[source]¶ Reads the latest message in the message broker, cannot read the same message twice.
- Args:
in_key: the name of the queue/stream at which the relevant message is located.
-
abstract
-
class
pipert.core.message_handlers.RedisHandler(url, maxlen=100)[source]¶ Bases:
pipert.core.message_handlers.MessageHandlerHelper class that provides a standard way to create an ABC using inheritance.
-
read_next_msg(self, in_key)[source]¶ Reads the following message from the one that was last read, if no message has been read before, then read the last message in the message broker cannot read the same message twice.
- Args:
in_key: the name of the queue/stream at which the relevant message is located.
-
read_most_recent_msg(self, in_key)[source]¶ Reads the latest message in the message broker, cannot read the same message twice.
- Args:
in_key: the name of the queue/stream at which the relevant message is located.
-
receive(self, in_key)[source]¶ Receives the latest message from the message broker.
- Args:
in_key: the name of the queue/stream at which the relevant message is located.
-