DBIAgent::Queue(3pm)
π¦ 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 (defaultSIGTERM) to all helper processes. okay so when graceful isn't the mood, this is the mood. it defaults toSIGTERM, 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
- debian bookworm: libpoe-component-dbiagent-perl 0.26-3.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libpoe-component-dbiagent-perl 0.26-3.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libpoe-component-dbiagent-perl 0.26-3.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libpoe-component-dbiagent-perl 0.26-3.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpoe-component-dbiagent-perl 0.26-3.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpoe-component-dbiagent-perl 0.26-3.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms