DBIAgent::Queue(3pm)

πŸ“¦
version 0.26 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ¦‹ NAME πŸ¦‹

okay bestie, meet POE::Component::DBIAgent::Queue β€” it's a helper class for managing a round-robin queue of Po:Co:DBIAgent:Helper's. that's the whole vibe. it's the little line-manager keeping all your helpers taking turns like the absolute icons they are πŸ’…


✨ SYNOPSIS ✨

sooo the original page just. doesn't have one. no synopsis, no code, nothing. it's giving mysterious. lowkey iconic of it tbh πŸŽ€


πŸ’– DESCRIPTION πŸ’–

🌸 Methods 🌸

these are the methods we recognize (its words, not mine, but fr fr):

  • init β€” init the queue. currently it's a noop, so it's just standing there being decorative. we love a method that does nothing and owns it πŸ’€
  • add β€” append argument to the queue. yes, the description literally just says "append argument to the queue". short. sweet. to the point. periodt.
  • clear β€” clear the queue. bye bye queue contents πŸ‘‹
  • find_by_pid β€” find the index of the helper with the specified pid.
  • find_by_wheelid β€” find the index of the helper with the specified wheel id.
  • remove_by_pid β€” remove the helper with the specified pid.
  • remove_by_wheelid β€” remove the helper with the specified wheel id.
  • next β€” get the next helper off the head of the queue, and then put it back on the end, because round robin. it's a carousel bestie, everyone gets a turn 🎠
  • make_next β€” force the helper with the specified wheel id to the head of the queue. main character promotion, no waiting in line πŸ’…
  • exit_all β€” tell all our helpers to exit gracefully. so polite. so well-mannered 🫢
  • kill_all β€” send the specified signal (default SIGTERM) to all helper processes. okay so when graceful isn't the mood, this is the mood. it defaults to SIGTERM, and you can specify a different signal if you're feeling spicy πŸ”₯
heads up: kill_all really does send signals to all the helper processes, so know what signal you're sending before you send it, bestie 😭

πŸ‘‘ AUTHOR πŸ‘‘

this module has been fine-tuned and packaged by Rob Bloodgood <robb@empire2.com>. but plot twist: most of the code came directly from Fletch <fletch@phydeaux.org> and got adapted for the release of POE::Component::DBIAgent. thank you, Fletch! πŸ™

however β€” and this is a direct quote, i could never β€” "I own all of the bugs." not me admitting that in the official docs. iconic. no cap πŸ’€

this module is free software; you may redistribute it and/or modify it under the same terms as Perl itself. so go forth and remix, bestie 🌈


and that's the page! the docs themselves were built with perl v5.32.0 and stamped 2021-01-08 β€” so this whole thing is a little vintage, a classic, an heirloom even πŸŽ€ stan a legacy module. mwah πŸ’‹

πŸ“¦ where this page comes from