The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

SRS::EPP::Session::CmdQ - manage epp command/response queue

SYNOPSIS

 my $q = SRS::EPP::Session::CmdQ->new( );

 # put requests on queue
 $q->queue_command( $epp_command );

 # pull a command off the queue; mark it in progress
 my @rq = $q->next_command;

 # put a response in
 $q->add_command_response( $epp_response, $epp_command? );

 # if a message has had all its requests answered, it can be dequeued
 ($epp_response, $epp_command) = $q->dequeue_response();

 # also available in scalar context
 $epp_response = $q->dequeue_response();

DESCRIPTION

This class implements a simple FIFO queue, but with small customizations to operation to suit the use case of the SRS EPP Proxy's queue of EPP commands and responses.

SEE ALSO

SRS::EPP::Session

AUTHOR AND LICENCE

Development commissioned by NZ Registry Services, and carried out by Catalyst IT - http://www.catalyst.net.nz/

Copyright 2009, 2010, NZ Registry Services. This module is licensed under the Artistic License v2.0, which permits relicensing under other Free Software licenses.