NAME
Net::Async::Beanstalk::Stack - A FIFO stack of queued commands
DOCUMENTED ELSEWHERE
This module's external API is undocumented.
ATTRIBUTES
- _command_stack
-
An internal FIFO stack of commands which are waiting to be sent or responded to.
Accessors:
- count_commands
-
How many commands are in the stack, including the one which the server is currently processing.
- current_command
-
Returns the command the server is currently processing, or has just sent a response to, without removing it from the stack.
- is_busy
-
A boolean indicating whether the client is busy, ie. has a command currently being processed or has commands waiting to be sent. Actually implemented by the same method as "count_commands".
- _pending_commands
-
Returns the commands which have not yet completed, including the one which the server is currently processing.
- _push_command
-
Push a new command onto the stack.
- _shift_command
-
Remove and return the first command from the stack, which the server is either processing or has returned a response to.