• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

/usr/lib/swipl/library/ext/redis/redis_streams.pl
All Application Manual Name SummaryHelp

  • ext
    • redis
      • redis.pl -- Redis client
      • redis_streams.pl -- Using Redis streams
        • xstream_set/3
        • xadd/4
        • xlisten/3
        • xlisten_group/5
        • xconsumer_stop/1
        • xhook/2
 xhook(+Stream, +Event)[multifile, library(redis_streams)]
This multifile predicate is called on certain stream events. Defined events are:
delivery_failed(Id, Group, Delivered)
A message was delivered more than specified by max_deliveries/1 of xlisten_group/5. Id is the message id, Group the group and Delivered the current delivery count. If the hooks fails, the message is acknowledged using XACK. From introduction to streams:
"So once the deliveries counter reaches a given large number that you chose, it is probably wiser to put such messages in another stream and send a notification to the system administrator. This is basically the way that Redis streams implement the concept of the dead letter."
ClioPatria (version V3.1.1-51-ga0b30a5)